Page 1 of 1

How to place a image on a white background

Posted: 2013-09-16T12:46:05-07:00
by Floezen
I have a picture, lets say 300 x 200 pixel, but I want to have it on a squared "layout" of 400 x 400 pixel. (Without changing the size of the original picture.)

Is there a function to do this? Like an function opposite to MagickCropImage( )?

Or would I have to merge this picture with another white-picture of 400x400?

Thanks
Flözen

Re: How to place a image on a white background

Posted: 2013-09-16T13:10:23-07:00
by fmw42
Find the equivalent of -extent. See http://www.imagemagick.org/Usage/crop/#extent

Re: How to place a image on a white background

Posted: 2013-09-18T13:42:05-07:00
by Floezen
Ok, thanks so far, but what would be the MagickWand equivalent to extend?

Re: How to place a image on a white background

Posted: 2013-09-18T14:01:33-07:00
by fmw42
Floezen wrote:Ok, thanks so far, but what would be the MagickWand equivalent to extend?

Sorry I do not use any APIs, only the command line. The documentation for your API should have something that you recognize with a similar name. Otherwise, someone who uses your API may need to respond.