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

Fixed the problem of Animated PNGs being decoded incorrectly #2327

Merged
merged 4 commits into from
Sep 15, 2024

Conversation

higumachan
Copy link
Contributor

related: #2265

Fixed the update range of dispose_op for Previous and Background in APngDecoder, which was applied to the entire image, to now be within the update range of the previous frame.

I referred to the following URL https://wiki.mozilla.org/APNG_Specification

I have checked in my environment and it works fine for the image in #2265.

The following is the data saved as an image of the frame.
frames.zip

Fixed the update range of dispose_op for Previous and Background in APngDecoder, which was applied to the entire image, to now be within the update range of the previous frame.
Copy link
Contributor

@fintelia fintelia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good to me, but I don't think the test image has a suitable license for us to include in the repository

@higumachan
Copy link
Contributor Author

Thank you for reviewing.

The code looks good to me, but I don't think the test image has a suitable license for us to include in the repository

Hmm, I’ve removed the data for now, but I don’t have a suitable replacement on hand, so I can’t add the test. What should I do?

@fintelia fintelia merged commit 40940d2 into image-rs:main Sep 15, 2024
31 of 32 checks passed
@fintelia
Copy link
Contributor

If anyone wants to either manually construct a test image or track down a suitably licensed one, that would be appreciated. But I don't think it needs to block landing this

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

Successfully merging this pull request may close these issues.

2 participants