Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I play APNG files in android

Tags:

android

apng

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!

like image 380
farhad.kargaran Avatar asked Jul 18 '16 07:07

farhad.kargaran


People also ask

How do I open an APNG file?

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.

Does Google Chrome support APNG?

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.

Is APNG supported?

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.

Is APNG and PNG the same?

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.


1 Answers

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)
like image 166
oupson Avatar answered Oct 28 '22 10:10

oupson