Skip to content

Add support for APNG #34

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

Open
lpatiny opened this issue Dec 15, 2023 · 4 comments · May be fixed by #48
Open

Add support for APNG #34

lpatiny opened this issue Dec 15, 2023 · 4 comments · May be fixed by #48
Assignees

Comments

@lpatiny
Copy link
Member

lpatiny commented Dec 15, 2023

Add the support for animated PNG.

decodeToBeDefined that returns systematically an array of images.

@opatiny
Copy link
Contributor

opatiny commented Dec 22, 2023

Do we want to decode or generate APNG (or both)?

@targos
Copy link
Member

targos commented Dec 22, 2023

Decode.

@EscapedGibbon
Copy link
Contributor

It seems like all is needed is to add an additional chunk to mark that an image is in fact APNG, then it just stacks chunks with data in a sequence. So it can be decoded as an array of frames. Probably current data decoding function will work on APNG data frames as well.

Image

@targos
Copy link
Member

targos commented May 1, 2025

Sounds simple enough! It looks like we can create a separate APNG decoder, that will internally call the PNG decoder with each frame.
I would would be the decodeAPNG function return an object, so we can have top-level metadata and the array of frames.

@EscapedGibbon EscapedGibbon self-assigned this May 1, 2025
@EscapedGibbon EscapedGibbon linked a pull request May 6, 2025 that will close this issue
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 a pull request may close this issue.

4 participants