[magick-users] Size Matters

Dick Middleton dick at fouter.net
Sun Jan 4 15:18:18 PST 2009


Pete Whatever wrote:
> Hi Dick,
> I hadn't seen that before so I looked in the source code.
> You can set the -size before an image (such as a large jpg) is read in to tell IM that you want the image resized.
> In your command, size is set to create the xc:orange canvas. But it's value persists and would interfere with reading dragon.jpg so +size sets the size setting back to a null value and then it is ignored when dragon.jpg is read in.

I was beginning to think it must be something like that, thanks.


Fred Weinhaus wrote:
> There is a note in fine print below the example. It explains:
>
>
> Note that the "-size" setting must be reset to either "-size 0x0" or
> turned off with "+size" before we read the JPG image.

Ah, yes; I missed that.  You're observant.  Thank you.

Dick



More information about the Magick-users mailing list