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

error: zTXt: chunk data is too large (libpng failed) #357

Open
zhangciwu opened this issue Apr 27, 2020 · 3 comments
Open

error: zTXt: chunk data is too large (libpng failed) #357

zhangciwu opened this issue Apr 27, 2020 · 3 comments

Comments

@zhangciwu
Copy link

zhangciwu commented Apr 27, 2020

Like this issue:
ImageMagick/ImageMagick#1301

  1. Download bug.png
  2. Run command pngquant bug.png
  3. Got error:
  error: zTXt: chunk data is too large (libpng failed)
  error: cannot decode image bug.png

It's because libpng has a too small default limit value for chunk size, should be able to solved like the issue above, (ImageMagick/ImageMagick@e6f6f88)
I've tried to solve it, but two projects are very different, out of my ability.

@MrMadClown
Copy link

I ran into the same Issue, any news on this?

@zhangciwu
Copy link
Author

@MrMadClown
Copy link

Not a solution, but FYI for anyone stumbling over this issue.

In my case I could prevent the error by stripping out meta-data beforehand. I just tested with the provided bug.png and could run pngquant on it.
My png came from a jpg containing ClippingPaths which made up like 90% of the filesize, with those removed, I did not encounter the error again.
I couldn't figure out what the issue with the bug.png is.

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

2 participants