Possible bug -auto-orient
Posted: 2019-09-03T18:35:48-07:00
I cannot get -auto-orient to work. It seems to correct the EXIF orientation flag, but does not rotated the image to the new orientation. So it still displays incorrectly. Perhaps I am confused about what it should do or the file is corrupt in some way.
I am reporting this here in response to a question of StackOverflow at https://stackoverflow.com/questions/577 ... s=3|0.0000
I have tried numerous versions of ImageMagick and all seem to fail on my Mac OSX. It fails for IM 6.9.10.63, IM 7.0.8.63 and also 6.9.9.40, 6.9.4.0 and 6.7.8.9
Input:
http://www.fmwconcepts.com/misc_tests/M ... rg-000.jpg
views rotated 180
and the verbose information shows:
exif:Orientation: 3
which means 180 deg rotation.
Then doing:
is still upside down when I use
but lists:
exif:Orientation: 1
http://www.fmwconcepts.com/misc_tests/M ... orient.jpg
I am suspicious that the file is photographed properly oriented, but has the wrong EXIF orientation flag. The thumbnail image on my desktop looks to be correctly oriented. But when I view the original full image in Mac PREVIEW or drop it onto one of several browsers, it shows up rotated wrongly.
I am reporting this here in response to a question of StackOverflow at https://stackoverflow.com/questions/577 ... s=3|0.0000
I have tried numerous versions of ImageMagick and all seem to fail on my Mac OSX. It fails for IM 6.9.10.63, IM 7.0.8.63 and also 6.9.9.40, 6.9.4.0 and 6.7.8.9
Input:
http://www.fmwconcepts.com/misc_tests/M ... rg-000.jpg
Code: Select all
display MI-LANSING-240267-org-000.jpg
and the verbose information shows:
exif:Orientation: 3
which means 180 deg rotation.
Code: Select all
convert MI-LANSING-240267-org-000.jpg -auto-orient MI-LANSING-240267-org-000_auto-orient.jpg
Code: Select all
display MI-LANSING-240267-org-000_auto-orient.jpg
Code: Select all
display MI-LANSING-240267-org-000_auto-orient.jpg
exif:Orientation: 1
http://www.fmwconcepts.com/misc_tests/M ... orient.jpg
I am suspicious that the file is photographed properly oriented, but has the wrong EXIF orientation flag. The thumbnail image on my desktop looks to be correctly oriented. But when I view the original full image in Mac PREVIEW or drop it onto one of several browsers, it shows up rotated wrongly.