devongovett / exif-reader

A small EXIF image metadata reader
MIT License
145 stars 22 forks source link

On some images Orientation gets reported incorrectly #2

Closed GordoRank closed 9 years ago

GordoRank commented 9 years ago

Having tested several node/js exif parsers there appears to be a bug in your implementation.

Certain Images report having an Orientation of 6 when all other readers report a value of 8. I'm not sure why this would be but I have been able to confirm that it is yours that is incorrect as transforming the resulting image based upon the your retrieved Orientation value shows an incorrectly rotated image.

GordoRank commented 9 years ago

Never mind. Just realized I was overwriting the output value with the Orientation value of the thumbnail if present. Which of course is often rotated differently.