Page 1 of 1

Posted: 2006-09-06T22:29:56-07:00
by anthony
See 'Padding out an image' in IM Examples, Resize
http://www.cit.gu.edu.au/~anthony/graph ... space_fill

Also more details examples of 'padding' in given in Thumbnails..
http://www.cit.gu.edu.au/~anthony/graph ... nails/#pad

Posted: 2006-09-07T17:54:34-07:00
by anthony
For your case where you are actually changing aspect ratios, probably.
but if your images are all the same size you only need to compute this once.

Note -border may not be the right solution as it always adds two pixels each time,
one on each side of the image. This was a problem that was looked at in an answer to someone designing CD covers, and also needed padding.

Specific sized images, without resize
http://www.cit.gu.edu.au/~anthony/graph ... /#cd_cover

This will ne merged into some other section at some point in the distant future.