-extent: Problems with position and background color

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
hknight
Posts: 32
Joined: 2007-08-02T10:16:15-07:00

-extent: Problems with position and background color

Post by hknight »

Hello,

I want the small image to be positioned at the bottom right, and I want the background of the image to be red.

But this gives me a black background and positions the image at the top left.

Code: Select all

convert -size 1633x198 h.jpg -thumbnail '1633x9998>' -background red -gravity SouthEast -extent 1633x198 +repage image.jpg
What am I doing wrong? How can this be fixed?

Thanks!
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: -extent: Problems with position and background color

Post by Bonzo »

See this post http://redux.imagemagick.org/discourse- ... f=1&t=9518

Change the xc:black to red and the -gravity to SouthEast, hopefuly that should do it.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: -extent: Problems with position and background color

Post by anthony »

You only have the initial implementation of -extent.
That is upgrade!

See the version warnings in IM examples for Extent
http://www.imagemagick.org/Usage/crop/#extent
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply