-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
libpng compatibility issue with zTXt text containing non-latin characters #123
Comments
That PNG has a zTXt chunk where the text field contains UTF-8 characters, it should be in a iTXt chunk instead, according to the standard:
Looks like libpng does not check the text field at all. |
Thanks! |
libpng itself can create these malformed files: https://github.com/glennrp/libpng/blob/e19a576157911315c1e045fcd0e4dec3e80fba81/pngwutil.c#L1556 |
Hello @randy408, this image reads fine with libpng, but produces
non-recoverable state
with git master libspng.some.png.zip
Original bug report:
libvips/libvips#1778
The text was updated successfully, but these errors were encountered: