-
-
Notifications
You must be signed in to change notification settings - Fork 852
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
Weird PNG resaving issue, broken image? #2498
Comments
If it encodes fine with the other encoders, then the source image isn't a problem. Does explicitly setting the color mode on png encoding make a difference? I'm wondering if it's a metadata thing. I'm assuming the compressions level is irrelevant (it should be). |
there is a PLTE Palette chunk inside apparently i used this random site to check it |
The issue seems to be a regression introduced between version 2.1.4 and 3.0.0. |
confirming 2.14 works BROKEN\SLOW 3.0.0-alpha.0.62 ~ 3.0.0-alpha.0.90 3.0.0-alpha.0.61+451a713fc11f2825946350c8f02c25b310509f57 |
Seems to be this +1,430 -1,610 massive pull request 😭 |
Should be simple enough to profile. |
OK. The issue is exposed within that commit but was preexisting. The |
I don't know how to fix the quantizer (yet) but I've changed the default strategy in #2485 to avoid the issue. |
Never knew my "small" problem would end up having this much code changed. |
Tiny code change for your issue (though I fear much greater change in the future). I'm just fixing a bunch of other stuff at the same time. |
Fixed via #2485 |
Prerequisites
DEBUG
andRELEASE
modeImageSharp version
3.0.1 \ 3.0.2-alpha.0.27
Other ImageSharp packages and versions
Drawing 1.0.0-beta15.1 \ 15.14 Fonts 1.0.0-beta18 \ 19.19
Environment (Operating system, version and so on)
Windows 11 x64 AMD Ryzen
.NET Framework version
.net core 7.0.9
Description
input png gets turned into a purple mess
probably a broken file
looking at the original trough multiple image viewers works fine
p.s. hi i'm back with another random weird issue 😄 still love you guys and imagesharp
i already have the new feedz to test the latest builds if available
Steps to Reproduce
doesn't matter if converting 1 or multiple images at the same time
Images
original input (also zipped to prevent "optimization"):
original.zip
broken output png:
working jpg (quality doesn't matter):
webp also works but file is not support 😄
The text was updated successfully, but these errors were encountered: