Hi,
What's the easiest way to stretch an existing image's canvas to a bigger size?
I meant to stretch the *canvas*, the image remains the same size. E.g,
stretching a 300x300 image to 600x400, but the image stays intact, still
300x300 (and better in the middle of the image), but the canvas is
stretched. So "identify" will returns 600x400, but the images looks the same.
Thanks
Stretch the canvas
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Stretch the canvas
convert image -gravity center -background somecolor -extent 640x480 resultimage
see
http://www.imagemagick.org/Usage/crop/#extent
see
http://www.imagemagick.org/Usage/crop/#extent
Re: Stretch the canvas
PERFECT!
Thanks!
Thanks!