Page 1 of 1

Possible auto-orient bug?

Posted: 2013-11-11T12:39:45-07:00
by hendrelouw73
I am resizing images and painting the background black. When I have a portrait image that as photographed in landscape, the image is scaled and remains in landscape. I want the landscape image to be scaled in portrait.
After adding the --auto-orient option the image scaled correctly in portrait mode. However the image is now cut off at the top and bottom. Is this a bug in ImageMagic?

Here is the command without --auto-orient

Code: Select all

convert image.jpg -resize 1024x768 -gravity center -background black -extent 1024x768  newimage.jpg
Here is the command with --auto-orient

Code: Select all

convert image.jpg -auto-orient -resize 1024x768 -gravity center -background black -extent 1024x768  newimage.jpg

Re: Possible auto-orient bug?

Posted: 2013-11-11T13:06:55-07:00
by dlemstra
What is your ImageMagick version and platform?