Problem when filling image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Ricardo
Posts: 3
Joined: 2015-04-28T11:50:25-07:00
Authentication code: 6789

Problem when filling image

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem when filling image

Post by snibgo »

Have you tried "-extent"?
snibgo's IM pages: im.snibgo.com
Ricardo
Posts: 3
Joined: 2015-04-28T11:50:25-07:00
Authentication code: 6789

Re: Problem when filling image

Post 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 ?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem when filling image

Post by snibgo »

snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Problem when filling image

Post 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
Ricardo
Posts: 3
Joined: 2015-04-28T11:50:25-07:00
Authentication code: 6789

Re: Problem when filling image

Post 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
Post Reply