GithubHelp home page GithubHelp logo

kapng-android's Introduction

Hello, I'm oupson.

I try things, and sometimes it work.

You can look at my website : oupson.fr

kapng-android's People

Contributors

carkchard avatar jisungbin avatar mogamusa31 avatar oupson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kapng-android's Issues

OOM issue in some devices, with Recyclerview load

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.

Compose

Hello! Can I use this in Compose and if yes, how?

Deflater in PngEncoder is never released

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)

I want to release image and pngBytes in PngEncoder after outputting Apng.

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
}

https://github.com/oupson/Kapng-Android/blob/master/apng_library/src/main/java/oupson/apng/imageUtils/PngEncoder.kt#L43-L46

Thank you for your response.

スクリーンショット 2020-05-08 17 08 17

Would you please tell me when to release a new version.

Hello.

Thank you for approving the #8 PR.
So, I'm looking forward to the release of a new version including the #8 PR.

If you have already decided when to release a new version, would you please tell me when to release a new version.

Thank you for your response.

speed in ApngAnimator is never used

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.