Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnail orientation #30

Open
oyvindgrimen opened this issue Sep 21, 2018 · 0 comments
Open

Thumbnail orientation #30

oyvindgrimen opened this issue Sep 21, 2018 · 0 comments

Comments

@oyvindgrimen
Copy link

oyvindgrimen commented Sep 21, 2018

There is potentially 2 orientations in the exif for an image. One is for the image itself, and the other is for the embedded thumbnail of the image. If one uses imagemagick with the command "magick identify -verbose image.jpg" then you can sometimes see that there is something like this in the output: "exif:thumbnail:Orientation: 6"

The exif-parser will read out this value and return it when you ask for orientation. However, it might not be the orientation of the image, only the thumbnail. I've seen cases where the main image does not have orientation, but the thumbnail has. Some exif libraries will give you no value in this case, and some vil give the value of the thumbnail. I belive the best would be to seperate them, with different tag names, like imagemagick does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant