Possible auto-orient bug?
Posted: 2013-11-11T12:39:45-07:00
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
Here is the command with --auto-orient
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
Code: Select all
convert image.jpg -auto-orient -resize 1024x768 -gravity center -background black -extent 1024x768 newimage.jpg