I try things, and sometimes it work.
You can look at my website : oupson.fr
An android library to create or display apng
License: MIT License
I try things, and sometimes it work.
You can look at my website : oupson.fr
file opening from assets fails... I think you have used wrong check file://android_asset...
I've to load multiple APNG in Recyclerview, but its generating OOM in certain devices,
could you update to get crash free results in recycler view,
I also tried Glide-Apng that throws following exception
E/FrameAnimationDrawable: onRender:Buffer not large enough for pixels
with no animation play, but crash free.
Hello! Can I use this in Compose and if yes, how?
Hello
I am using Kapng-Android to output Apng with an Android application.
Thank you very much.
Regarding Issue of the main subject, I received the following warning called LeakedClosableViolation in the process of adding Frame of Apng. Checking the warning explains that the Deflater instance in PngEncoder is not released. Is there anything you know about this?
I don't know if this is directly related, but OutBytes in PngEncoder was not closed. This issue has not been warned, but I feel like I'm likely to receive a warning from LeakedClosableViolation as well. Therefore, if you haven't closed it unintentionally, I would like you to add a modification to close it.
Thank you for your response.
D/StrictMode: StrictMode policy violation: android.os.strictmode.LeakedClosableViolation: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
at android.os.StrictMode$AndroidCloseGuardReporter.report(StrictMode.java:1803)
at dalvik.system.CloseGuard.warnIfOpen(CloseGuard.java:264)
at java.util.zip.Deflater.finalize(Deflater.java:567)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:250)
at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:237)
at java.lang.Daemons$Daemon.run(Daemons.java:103)
at java.lang.Thread.run(Thread.java:784)
Caused by: java.lang.Throwable: Explicit termination method 'end' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:221)
at java.util.zip.Deflater.<init>(Deflater.java:181)
at java.util.zip.Deflater.<init>(Deflater.java:190)
at oupson.apng.imageUtils.PngEncoder$Companion.writeImageData(PngEncoder.kt:314)
at oupson.apng.imageUtils.PngEncoder$Companion.encode(PngEncoder.kt:113)
at oupson.apng.imageUtils.PngEncoder$Companion.encode$default(PngEncoder.kt:82)
at oupson.apng.Apng.addFrames(Apng.kt:52)
at oupson.apng.Apng.addFrames$default(Apng.kt:50)
How can I solve this?
Looks like the latest release is deleted from jitpack repo. I need to update this library to resolved few issue which are available in 1.0.11 build.
@oupson @carkchard @jisungbin @mogamusa31 It will be really helpful if you guys can look into this ASAP!
Seems to be related with the non transparency of the source image or to the way the image is compressed / interlaced
Produce an invalid apng at the end
Hello
I am using Kapng-Android to output Apng with an Android application.
Thank you very much.
Regarding the main subject, I want to release image and pngBytes in PngEncoder after outputting Apng because these variable remains after outputting Apng As you can see in the image below. would you offer me how to release these variable? If there is no way, I want to add a function for release. Specifically, I'd like you to add the following functions. Maybe I would be happy if the function was prepared as a static function.
fun release() {
image?.recycle()
image = null
pngBytes = null
}
Thank you for your response.
I wanted to try and set the duration of each animation. The setSpeed()
method looked promising, but on inspection the speed is never used. Is this on purpose? Is there another way to set each frame duration?
Would it be possible to add a listener so that we can be notified of when the animation has hit the last frame and is starting a new loop?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.