Re: Annotating photos with metadata
Posted: 2017-04-04T21:19:12-07:00
Here is some clarification.
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:
and here is how I would like to make the script general, but I cannot get the parameters to work:
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