I want to play APNG files and create animated stickers in my app like LINE messenger! I can create apng using some tools like APNG Assembler. but I dont know how to play animated png in my app.
help me please!
All the major web browsers can also open PNGs, including Chrome, Edge and Safari. To view it, just drag and drop a PNG file from your desktop to your browser.
Note: Animated PNG (APNG) is Fully Supported on Google Chrome 97. If you use Animated PNG (APNG) on your website or web app, you can double-check that by testing your website's URL on Google Chrome 97 with LambdaTest.
Animated PNG (APNG) on Chrome is fully supported on 59-106, partially supported on None of the versions, and not supported on 4-58 Chrome versions. Animated PNG (APNG) on Safari is fully supported on 8-16, partially supported on None of the versions, and not supported on 3.2-7 Safari versions.
APNG is an extension of the PNG format, adding support for animated images. It is intended to be a replacement for simple animated images that have traditionally used the GIF format, while adding support for 24-bit images and 8-bit transparency.
If you want to display or create apng files you could use this : https://github.com/oupson/Kapng-Android
Example of loading apng file into imageView :
ApngDecoder.decodeApngAsyncInto(context, URL("https://apng.onevcat.com/assets/elephant.png"), imageView)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With