github.com/oupson/Kapng-Android

An android library to create or display apng

Open this visualization on its own page →

Contributors

4

Lines of Code

875

From

2018-09-27

To

2020-12-06

About oupson/Kapng-Android

Kapng-Android is an Android library written in Kotlin that enables developers to display and create animated PNG (APNG) images in their applications. The library provides straightforward APIs for loading APNG files from various sources including local files, URIs, Android resources, URLs, and input streams directly into ImageView components, with optional callbacks for handling completion events.

Beyond just displaying animated PNGs, the library also includes functionality to programmatically create and encode APNG files, making it useful for applications that need to generate animated graphics at runtime. The library is distributed through JitPack or can be integrated locally as an AAR file in the libs directory with standard Gradle dependency configuration.

This library fills a gap in Android development since the platform's native image handling doesn't have built-in APNG support despite the format being a standardized PNG extension. It targets developers building media-rich Android applications that need to work with animated PNG content.

Share this video