Page 1 of 1

Re: Strange compose behaviour

Posted: 2008-03-26T13:21:05-07:00
by fmw42
I suspect the issue is that you are rotating the images as their widths are less than their heights. This means that the size specification in your -geometry has the rotated widths and heights backwards. You need to switch them. Of course this causes a problem when your images are not rotated. So you are probably better off doing a test before hand and then making two convert statements depending upon whether the image is rotated or not.

As a quick test, take out the rotation and see if the results are placed correctly.

Re: Strange compose behaviour

Posted: 2008-05-11T20:47:19-07:00
by anthony
Alturnativally resize your images before rotating!!!!

Also -rotate in your example is rotating not only the image, but the canvas on whcih the image has been composed. The -geometry resize is limited to just the last image but it is the ONLY image operator that has that limitation, and that was due to backward compatibility reasons. -rotate has no such limitation, it rotates ALL images that are currently in memory!!!