mattiasw / ExifReader

A JavaScript Exif info parser.
Mozilla Public License 2.0
743 stars 89 forks source link

The width and height of the image are incorrectly obtained #299

Closed besscroft closed 4 months ago

besscroft commented 4 months ago

Description

expect:

image actually:

b17f45d70ca2f6790e5d781593da1163

Additional details

Example Image File

FDAB0C214A002CE64F2C3C3F63E425B9

What really happened:

I found that the width and height values read for my vertical photo were incorrect.

Finally, thank you for your work. I hope you can help me figure out the problem, thank you!

mattiasw commented 4 months ago

Hi! I guess you realized already but it's because of the rotation/orientation. The image is actually landscape but web browsers and other tools often auto-rotate.