Page 1 of 1

-extent: Problems with position and background color

Posted: 2007-08-26T10:04:25-07:00
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!

Re: -extent: Problems with position and background color

Posted: 2007-08-26T11:14:27-07:00
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.

Re: -extent: Problems with position and background color

Posted: 2007-08-28T00:04:46-07:00
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