-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
DuplicateChunk error for image with sRGB chunk preceding gAMA chunk #340
Comments
I'm also seeing this regression with a bunch of other images. (For example https://raw.githubusercontent.com/slint-ui/slint/v0.1.6/examples/imagefilter/cat_preview_round.png ) |
I still encountered this error with version 0.24.8 with this image: The Error shown was: Running with version 0.23.14 currently solves the issue. |
@ScranchNew Make sure you run |
If one can still reproduce this issue with the last png version, the best would be to open the issue directly on the png crate repository and attach the exact image. https://github.com/image-rs/image-png |
This image with an sRGB chunk preceding a gAMA chunk fails to decode in 0.17.4 but it decodes fine in 0.17.3.
https://user-images.githubusercontent.com/6209323/155889742-979e8698-2e87-4206-8930-a1a454c2dc10.png
I believe the breaking change to be from #334
The error originates from this check:
image-png/src/decoder/stream.rs
Lines 959 to 963 in bb55a66
Because
source_gamma
is set inparse_srgb
here:image-png/src/decoder/stream.rs
Lines 991 to 995 in bb55a66
The text was updated successfully, but these errors were encountered: