-
Notifications
You must be signed in to change notification settings - Fork 49
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 throws bad adaptive filter will abort writing result #139
Comments
Howdy! Thanks for the test case. My current test suite only has a limited collection of corrupt images, so there are definitely places where |
I had a quick look at the Chromium fork of The issue is that My original intent was to forward |
I've finally published a new set of packages with this fix. |
Hi!
Image within attached project is partially corrupt but is shown in windows (relying on WIC codec) and browsers (that uses libpng)
MagicScalerTest.zip
This code will throw System.InvalidOperationException: 'Libpng decoder failed. bad adaptive filter value'
It works on windows when this part
CodecManager.Configure(codecs => { codecs.UseLibpng(); });
is comment out and we fallback to the WIC codec. On Linux we can't rely on this to get around the issue.You are already using the PNG_CRC_QUIET_USE flag to ignore CRC errors so some corrupt png images works.
I would expect the image to still be partially converted. Any input?
The text was updated successfully, but these errors were encountered: