Page 1 of 1

Cropping all images to uniform size....

Posted: 2007-02-27T14:41:29-07:00
by johnoyler
Is it possible to use Crop() so that if you have an image that is smaller than the size you're changing it to, that it will expand the image to that size? I'd prefer that the extra area be white.

Re: Cropping all images to uniform size....

Posted: 2007-03-06T00:34:00-07:00
by anthony
there is a little trick. crop the image as normal, but add a '!' flag. This makes the virtual canvas from crop that same size as the crop. The images offset is set to poistion the image in this area right too.

now set the background and flatten it. the flatten will fill out the image to the virtual canvas size, and set the backgound to the color given (can be transparent if you like).