randy408 / libspng

Simple, modern libpng alternative
https://libspng.org
BSD 2-Clause "Simplified" License
735 stars 74 forks source link

Animated PNG (APNG) read support #4

Open randy408 opened 5 years ago

randy408 commented 5 years ago

APNG is an unofficial extension by Mozilla, it allows for animated PNG files that work similarly to animated GIF files, while supporting 24-bit images and 8-bit transparency not available for GIFs.

This issue depends on https://github.com/randy408/libspng/issues/40 (row- and chunk callbacks) This would be implemented without callbacks, it should be possible to reuse spng_decode_image() for decoding the APNG frames.

Implementation

Testing

Other

Documentation

Depends on https://github.com/randy408/libspng/issues/10, https://github.com/randy408/libspng/issues/38

Kochise commented 3 years ago

Official Animated PNG format is MNG : http://www.libpng.org/pub/mng/

Reference pictures are here : http://www.libpng.org/pub/mng/mngpics.html

MCOfficer commented 3 years ago

Official Animated PNG format is MNG : http://www.libpng.org/pub/mng

Reference pictures are here : http://www.libpng.org/pub/mng/mngpics.html

Official or not, it is for all intents and purposes dead. It only made it into one major browser, from which it was removed later. APNG is playing in a different league.

In a way, it's the XHTML of png. (no html5-to-apng comparison intended)

svgeesus commented 1 year ago

APNG is now part of PNG Third Edition rather than being documented in a separate extension document.

mkirkland4874 commented 8 months ago

Does this branch work for apng reading?? Or still more to be done to decode?