-
Notifications
You must be signed in to change notification settings - Fork 25
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
Sail fails to decode some APNGs #184
Comments
I agree there are some blending issues. I've just fixed a memory corruption issue (at least on MSVC 2019) on Regarding the 8-bit greyscale and alpha, with blending image: it has three frames:
https://philip.html5.org/tests/apng/tests.html specifies that the image should be rendered as |
If the image viewer respects |
Oh, I see. This explains a lot. The next rc will have blending of grayscale frames and I'll add num_plays as a special property for those who are interested. |
Did you install sail through vcpkg? |
No, I built it from source. |
You can try the latest master with blending of grayscale images. |
Please reopen if needed |
Sail fails to decode Animated PNG files which use a Color Type other than 6 and
APNG_BLEND_OP_OVER
. This is becausepng_private_blend_over
only supports RGBA, and doesn't check thetRNS
chunk. Even if the PNG doesn't have any transparency information, blend_source should be used instead (equivalent to blend_over assuming all pixels are opaque).Examples from https://philip.html5.org/tests/apng/tests.html:
8-bit greyscale and alpha, with blending
1-bit palette and alpha, with blending
And here's a 16-bit grayscale+alpha APNG that will incorrectly be blended as if it's 8-bit RGBA:
The text was updated successfully, but these errors were encountered: