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

JPEG file padding #13

Open
thorsted opened this issue Oct 5, 2020 · 0 comments
Open

JPEG file padding #13

thorsted opened this issue Oct 5, 2020 · 0 comments

Comments

@thorsted
Copy link
Contributor

thorsted commented Oct 5, 2020

Over the last year or so I have come across a few examples of JPEG files which have padding after the 0xFFD9 marker. Some are a few bytes while others are megabytes in size. Seems to be a bug in some downloading software.
See https://www.macrumors.com/2020/05/01/macos-jpg-truncation-bug-widespread/

Also a conversation on the subject here:
https://twitter.com/CHLThor/status/1311728118411849728

I have noticed some JPEG signatures have 65k of maxbyte offsets, while others have 130k.
fmt/44 is looking for 65536 maximum offset
x-fmt/390 is looking for 16000 maximum offset
x-fmt/391 is looking for 131072 maximum offset

Questions:

  • Should 0xFFD9 marker be optional for identification?
  • Should the max offset be consistent?

See also Samsung trailer makernotes:
https://exiftool.org/forum/index.php?topic=10813.0

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