Use ImageMagick to place an image inside a larger canvas

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2009-11-24T02:10:08Z Indexed on 2010/05/02 22:18 UTC
Read the original article Hit count: 183

Filed under:

Getting started with ImageMagic and trying to find a way to do this... If an image is less than 50 pixels tall or 50 pixels wide, I'd like to place it (un-scaled) in the horizontal/vertical center of a new 50x50 pixel canvas on top of a white background - and save that as the new image. Anyone know if this is possible with ImageMagick? Thanks!

© Stack Overflow or respective owner

Related posts about imagemagick