Skip to content

Conversation

@stuchl4n3k
Copy link

  • Decoding the value as long gives scene type value 16777216 instead of 1 ("Directly photographed").

- Decoding the value as long gives scene type value 16777216 instead of 1.
Copy link

@ctruta ctruta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tested this fix locally and I confirm the updated test is passing.

I also confirm it is a correct fix of an endianness issue. The current bug (16777216 vs 1) is a classic big-endian interpretation of a single byte as a 4-byte integer. It should read one byte and expect value 1 "directly photographed scene".

You can see the tag 0xa301 SceneType referenced here:
https://exiftool.org/TagNames/EXIF.html

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

Successfully merging this pull request may close these issues.

2 participants