Page 1 of 1

Problem when filling image

Posted: 2015-04-28T12:01:27-07:00
by Ricardo
I have an image that can be 640x300 or 360x480 , need the image is 640x480 filling on both sides with white. How do I? I've tried everything , resize , repage , flatten , etc

Re: Problem when filling image

Posted: 2015-04-28T12:37:46-07:00
by snibgo
Have you tried "-extent"?

Re: Problem when filling image

Posted: 2015-04-28T12:55:04-07:00
by Ricardo
snibgo wrote:Have you tried "-extent"?

no, I have not tried. I have now : convert "c: \ ej.jpg " repage 640x480 -flatten "c: \ ej.jpg " However , do not fill on both sides , just right.
How should it be with -extent ?

Re: Problem when filling image

Posted: 2015-04-28T14:10:31-07:00
by snibgo

Re: Problem when filling image

Posted: 2015-04-28T14:31:35-07:00
by fmw42
Before posting a question (especially for new IM users), please read the very top post on the Users forum "READ THIS FIRST" at viewtopic.php?f=1&t=9620

See the part about Examples at:

http://www.imagemagick.org/Usage/
and also
http://www.imagemagick.org/Usage/reference.html

Re: Problem when filling image

Posted: 2015-04-29T05:19:32-07:00
by Ricardo
snibgo wrote:Use it with "-gravity". See http://www.imagemagick.org/script/comma ... php#extent
thank you very much ! with your help I could solve this problem