Page 1 of 1

Resize image, then annotate with autosize text - how?

Posted: 2015-08-04T04:43:47-07:00
by skribb
I'm trying to resize an image and then annotate it with autosizing text that should fit the 512x512 image canvas. This is my code:

Code: Select all

convert "folder.jpg" -resize "512x512^" -gravity center -crop 512x512+0+0 +repage "folder.jpg"
SLEEP 1
convert -size 512x512 xc:none -gravity southeast -stroke white -strokewidth 50 -annotate 0 "test" -blur 0x15 -background none -stroke none -fill black -annotate 0 "test" "folder.jpg" +swap  -gravity southeast -geometry +0-3 -composite "folder.jpg"
The resize and crop seems to be working alright, but the annotation becomes tiny. if I specify a pointsize, it won't autosize, so am I doing something wrong? :shock:


thanks guys

Re: Resize image, then annotate with autosize text - how?

Posted: 2015-08-04T05:22:37-07:00
by snibgo
"-annotate" won't auto-size text.

"label:" will auto-size text. Use this to create a new image, and composite that over your required image.

Re: Resize image, then annotate with autosize text - how?

Posted: 2015-08-05T02:46:16-07:00
by skribb
Oh, i see. thanks