images icon indicating copy to clipboard operation
images copied to clipboard

Any chance to have support for Animated PNGs (APNGs)?

Open BobbyWibowo opened this issue 5 years ago • 1 comments

I personally think APNG is such an obscure/meme format, but some big players do use it, so it is what it is I suppose.

Here are some sample images: Sample

https://stickershop.line-scdn.net/stickershop/v1/sticker/72822926/iPhone/[email protected];compress=true

Sample

https://stickershop.line-scdn.net/stickershop/v1/sticker/72822927/iPhone/[email protected];compress=true

For now the service will only treat APNGs as static PNGs (so it only recognizes the first frame). It'd be great if the service allows on-the-fly conversion of APNGs to GIFs instead, and optionally make the GIFs have infinite loop. I mention loop cause those APNGs at their current state will only loop once, as is the decision from LINE themselves.

If they don't loop on your end, try opening the direct link underneath them on a new tab. GitHub proxies them into static PNGs too.

BobbyWibowo avatar Nov 09 '20 13:11 BobbyWibowo

We are currently experimenting with switching from libpng to libspng for reading PNG files, which makes randy408/libspng#4 relevant here. Implementing this in a PR for https://github.com/randy408/libspng or making a donation to https://opencollective.com/libspng would be the best next step.

kleisauke avatar Nov 09 '20 13:11 kleisauke