Possible auto-orient bug?

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
hendrelouw73
Posts: 1
Joined: 2013-11-11T12:34:33-07:00
Authentication code: 6789

Possible auto-orient bug?

Post 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
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Possible auto-orient bug?

Post by dlemstra »

What is your ImageMagick version and platform?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply