Reputation: 13
Have to add different text over an image. The texts are in the table. There are about 10,000. How can I automate this process? Maybe script for Photoshop? Or something else? Thank you in advance!
Upvotes: 1
Views: 4490
Reputation: 207630
I would recommend ImageMagick. It is most simply installed on macOS with homebrew, just:
brew install imagemagick
Then if your table looks like this in table.csv
base1.png,180,100,result1.png,I have a dream
base2.png,20,90,result2.png,Four score and seven years ago
base3.png,50,180,result3.png,Gonna build me a wall
You would do the following in bash
in the Terminal:
#!/bin/bash
while IFS=, read base x y result text; do
echo DEBUG: $base $x $y $result $text
convert "$base" -pointsize 18 -annotate +${x}+${y} "$text" "$result"
done < table.csv
And you would get this:
Upvotes: 0
Reputation: 36
Indesign, data merge works on both text and image. https://www.youtube.com/watch?v=ktcbTtC3-Xk
There is a variable function in photoshop check this tutorial https://www.youtube.com/watch?v=3IzpItHTvyo
Upvotes: 2