When I use the following command to auto orient pictures, the picture is correctly oriented, but the Exif data is not updated.
mogrify -auto-orient -quality 80% /home/path/to/my/picture.jpg
When I take a picture with an iPhone holding the phone in the portrait position, the Exif shows the orientation as Right/Top. If I post this image to a forum and view the picture with an iPhone the picture is shows correctly. But if I view the image using a desktop computer (using Firefox or similar browser) the picture is shown sidways.
So if I use -auto-orient command, it properly flips the image and viewing with a desktop browser the picture displays properly, but now if if I view the same picture using an iPhone the picture is sideways.
The problem I think is that after I run the -auto-orient command the Exif data is not updated. The original picture Exif shows Right/Top where the Exif data after using the -auto-orient should have been updated to show Top/Left.
Is there any way to update the Exif data when the -auto-orient command is issued?
I'm running the latest version of ImageMagick 6.6.3-2 on a Centos 5.4 server.
Thank you for a great program.


