Have to use 6.2.4, fix for missing "-auto-orient"?

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
webunity

Have to use 6.2.4, fix for missing "-auto-orient"?

Post by webunity »

Since i migrated from servers, i have to use "Convert" version 6.2.4. This version does not have the -auto-orient function build in. So i decided to read the EXIF_DATA and base my command line parameters on this.

Depending on the EXIF data, i get a number returned from 1 to 8. On this page ( http://sylvana.net/jpegcrop/exif_orientation.html ) i have found this list:
Value 0th Row 0th Column
1 top left side
2 top right side
3 bottom right side
4 bottom left side
5 left side top
6 right side top
7 right side bottom
8 left side bottom

Does this mean that the image is auto-oriented when i pass these options correctly: ?
e.g. "convert ... -orient bottom-left" for "exif type 1"?
e.g. "convert ... -orient bottom-right" for "exif type 2"?

Thanx!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Have to use 6.2.4, fix for missing "-auto-orient"?

Post by anthony »

The best 'fix' is to use "jhead" whcih will rotate images without lossing quality due to reading/writing a JPEG image.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply