-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
PNG with long iTXt chunk not detected as PNG image #320
Comments
Maybe a reasonable fallback indeed.
The 4100 sample limit is no longer in file-type (see #248, #319), except in Which function are you using? Can you use |
I merged your (@lenartbezek) changes to #321, on top of PR #319 to get rid of the 4k side effects. |
I am using |
Some PNG images have long
iTXt
chunks so the parser never reachesIDAT
chunk.When printing chunks after the header, I get something like this:
A solution perhaps would be to add a final return after this line in case the PNG header matches, but no
IDAT
chunk is found in first 4100 bytes. Or perhaps an extra switch case forITXt
chunk?Example image with
ITXt
chunk: https://puu.sh/F4fqT.pngThe text was updated successfully, but these errors were encountered: