I am trying to write a script to run after I scan each image and put the meta-data into THOUSANDS of photos I am scanning.
When I right click on an image, and select Annotate, it runs my script Annotate with the filename as the parameter.
Here is my script that I currently run, that has to be edited for every single file:
Code: Select all
convert "input.jpg" \( -clone 0 -size 1200 -delete 0 -background black -gravity center -pointsize 20 -fill White caption:"This is a the meta-comment that is pulled from the photo and I do not want to have to cut and paste for every photo" -trim \) -append "annotated.jpg"
Code: Select all
read cw cf cdesc <<< $( identify -format "%w %[fx:h*.04] %[IPTC:2:120]" $1 )
convert $1 \( -clone 0 -size $cs -delete 0 -background black -gravity center -pointsize $cf -fill White caption:$cdesc -trim \) -append $1_annotated.jpg