Giter Site home page Giter Site logo

Comments (8)

bitbank2 avatar bitbank2 commented on September 12, 2024

I just pushed a change which adds support for interlaced frames and addresses the issue you raise here. Please give it a try and if you're satisfied, I'll do a new release.

from animatedgif.

embedded-creations avatar embedded-creations commented on September 12, 2024

@bitbank2 that seems to fix the issue where delayMilliseconds is left unset, but actually makes it worse for me wanting to know if a frame was processed. Can you also keep the GIF_EMPTY_FRAME error, and don't replace with GIF_SUCCESS, or do you have another suggestion on how to know if a frame was processed after calling playFrame()?

from animatedgif.

bitbank2 avatar bitbank2 commented on September 12, 2024

ok, please try again. I believe I have patched the last hole in the logic.

from animatedgif.

embedded-creations avatar embedded-creations commented on September 12, 2024

@bitbank2 The issue is still here in playFrame() (not in the C interface which I'm not using):

https://github.com/bitbank2/AnimatedGIF/blob/master/src/AnimatedGIF.cpp#L196

GIF_EMPTY_FRAME gets changed to GIF_SUCCESS, so it looks like a frame was processed, but it wasn't and there's no way for me to know the difference.

from animatedgif.

bitbank2 avatar bitbank2 commented on September 12, 2024

You're right - I was working with the C code. I removed the offending line. If that's not it, please make the change and do a pull request.

from animatedgif.

embedded-creations avatar embedded-creations commented on September 12, 2024

Great! I'll test this and an interlaced GIF as well and let you know

from animatedgif.

embedded-creations avatar embedded-creations commented on September 12, 2024

Needed one more line of code, and I also added some comments so just did a PR. Feel free to copy/paste if that's easier than accepting the PR #23

I tested the interlaced GIFs @PaintYourDragon posted in #14 and they work. I didn't really look at the C code changes nor try to test them, LMK if you want me to specifically look at those.

from animatedgif.

bitbank2 avatar bitbank2 commented on September 12, 2024

Thanks for the changes - accepted.

from animatedgif.

Related Issues (20)

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.