How to batch annotate my images?
Posted: 2013-05-30T10:12:44-07:00
I use following codes to batch annotate my images using ImageMagick convert function under Windows7 system.
for %i in (*.png) do convert %i -fill yellow -box green -gravity South -pointsize 20 -annotate +0+0 (a) "%~niAnnotated.png"
My questions are:
1. How to change the annotated text (a) into (a), (b), (c), ... as looping the images?
2. how to add -trim function to remove the white space around the images with annotation. I use the script above with -trim but remove my annotation as well.
Thanks.
Aaron.
for %i in (*.png) do convert %i -fill yellow -box green -gravity South -pointsize 20 -annotate +0+0 (a) "%~niAnnotated.png"
My questions are:
1. How to change the annotated text (a) into (a), (b), (c), ... as looping the images?
2. how to add -trim function to remove the white space around the images with annotation. I use the script above with -trim but remove my annotation as well.
Thanks.
Aaron.