[magick-users] Center image in larger canvas
Fred Weinhaus
fmw at alink.net
Tue Oct 28 15:23:39 PDT 2008
If all your images are smaller than the size of your desired
resulting (say 800x800), then the easiest way is to use -extent
see http://www.imagemagick.org/Usage/crop/#extent
You need IM 6.2.4 to use -extent
convert inputimage -background white -extent 800x800 resultimage
you can make the background color whatever you want. see
http://imagemagick.org/script/color.php
>I have a sheaf of scanned png images of
>uneven sizes. what I want to do is to
>add borders so that he original image,
>without resizing, is cenetered in the new
>image, all the new images having the
>same size. How do?
>
>/BP
More information about the Magick-users
mailing list