I have been struggling with one image https://www.dropbox.com/s/d5hg6ns9mgzg6 ... 6.jpg?dl=0 (Here displayed as it was taken, but 'incorrectly' because it should have been rotated according to exif. Even if dropbox auto-rotates other exif images)
Here is the image as archive to avoid auto-orient and exif strip:
https://www.dropbox.com/s/7oelcw15ejzvi ... g.tar?dl=0
The problem is that this image has in EXIF orientation flag: Rotate 90 degrees (you can see it using exiftool command). So if I do
Code: Select all
convert image_956.jpg -auto-orient
it correctly rotates the image to the right. So does our application using imagemagick to auto-rotate images. So when user uploads this image on our site we display it rotated to the right.
But from unknown reasons to me every tool, Browser, Facebook, Dropbox, etc. displays this image according to me 'incorrectly' (not rotated). Even if other exif images are rotated.
Why only this image is not rotated anywhere but using imagemagick?
Is it possible that the image is invalid? Or mobile phone put there some wrong information?
Is there some imagemagick validate method to detect this?
Or how to deal with this situation?
Any help would be really appreciate! Thank you in advance!
Hopefully I expressed the problem correctly. If anything I can provide more information
Thanks
Jan