BLumia / pineapple-pictures

A homebrew lightweight image viewer.
https://sourceforge.net/projects/pineapple-pictures/
MIT License
406 stars 51 forks source link

Add support for APNG #44

Closed KrasnayaPloshchad closed 2 years ago

KrasnayaPloshchad commented 2 years ago

This could be done by integrating libpng-apng.


Edited by maintainer:

BLumia commented 2 years ago

Adding the third-party APNG Qt image format plugin QtApng could be a solution. Since it's likely a packaging/distributing issue, maybe I'll do it in the future but no promise. Feel free to send a PR if anyone would like to working on that :)

BLumia commented 2 years ago

Hi, for now, you could now download a test CI build for apng formatting support from here (ps. expire in 30 days so make sure to download it if you need it right now). Please notice in that build, APNG files should use apng extension (instead of png) to get proper animation playback.

The APNG format support hasn't yet landed to the master branch, I may still do some other changes related to this so it's still subject to change :)

BLumia commented 2 years ago

Related: https://github.com/Skycoder42/QtApng/pull/12

BLumia commented 2 years ago

Also related: https://github.com/Skycoder42/QtApng/pull/14

BLumia commented 2 years ago

I've tested the basic functionality of QtApng in the 0.5.4 period. Some work has already been done from my side and related patches are also upstreamed to the original author. I'm still evaluating the APNG support from QtApng to see if there are any additional issues with that plugin, and once I'm happy with the result, APNG support will hopefully get included in the main release of the Windows binary version.

Before that happen, you could get a separate release for APNG (and other additional formats) from itch.io store, the CI builds, or by building the plugin yourself. If you found any issue with the APNG plugin, feel free to let me know by opening another issue or discussion thread :)