I want to maintain the integrity of the original photos, so I am splicing an annotation area to the bottom, so if I need to update the annotation, I can simply trim off the old and add another. The annotations are coming from the metadata that I am maintaining using gThumb in Linux, not that it should matter. The problem is that some of the photos have a LOT of people and the descriptions can be very long. I do not want the font to get too small, so I need word wrap. I thought that CAPTION with its word wrap might be able to help, but I cannot see to get it to work. The second issue that I might have is whether the spliced area will be tall enough. If I could know how many lines I was going to have, I could change my splice to be a multiple of the lines. My first Convert works, but the second does not. Thank you for any suggestions.
Code: Select all
read cwidth csplice cfont cdate ctime cdesc <<< $( identify -format "%w %[fx:h*.05] %[fx:h*.04] %[EXIF:DateTimeOriginal] %[IPTC:2:120]" $1 )
convert $1 -gravity South -background Black -pointsize $cfont -fill White -splice 0x${csplice} -annotate +0+0 "$cdesc" annotated_$1
#convert $1 -gravity South -background Black -pointsize $cfont -fill White -splice 0x${csplice} -size $cwidth caption:"$cdesc" annotated_$1