Page 1 of 1

Posted: 2006-10-05T12:02:29-07:00
by anthony
Only one rotate was used, so only the first image was rotated,
and you are -roatting just the frame, not the image.

Basically... Read in images BEFORE operating on them.

Code: Select all

convert -size 150x150 xc:transparent -fill white -stroke #aaa
-draw "rectangle 40,30 120,110" img1.png -geometry +43+33 -composite -rotate 10
-draw "rectangle 50,20 130,100" img2.png -geometry +53+23 -composite -rotate 10
-draw "rectangle 60,10 140,90" img2.png -geometry +63+13 -composite -rotate 10
output.png
At the end of each compose you only has one image in memory.
note however that rotates expands the in memory image, so you may need some other adjustments and final trimming. Also rotating an image multiple times may not be the best thing to do quality wise.

PS: I home you mind if I include an example somthing like this in IM examples, on poloroid image thumbnailing.