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