Giter Site home page Giter Site logo

Some Problem GIFs about animatedgif HOT 7 CLOSED

bitbank2 avatar bitbank2 commented on September 12, 2024
Some Problem GIFs

from animatedgif.

Comments (7)

bitbank2 avatar bitbank2 commented on September 12, 2024

Thanks for the letting me know. Famous quote - "If I can reproduce it, I can fix it" 😄

from animatedgif.

bitbank2 avatar bitbank2 commented on September 12, 2024

Some info... Not a crash, but a normally returned error. The top and bottom images are stored as interlaced and my library rejects them because this code assumes your target CPU doesn't have enough RAM to hold the decoded image. The middle image seems to play correctly.

from animatedgif.

PaintYourDragon avatar PaintYourDragon commented on September 12, 2024

Appreciate your help with this today. Got things mostly resolved by de-interlacing all the GIFs through ImageMagick, and handling the different return values from playFrame().

Two images are still causing issues though. (At least they’re not crashing now, thanks to your playFrame() help…but they do get skipped over in the player now when it detects a -1 value, even though they appear valid on desktop.) Attaching them here. These are not necessarily the same as above (even though they look the same in browser)…they’ve been coalesced & deinterlaced through ImageMagick.

lightspd
wolf1

from animatedgif.

bitbank2 avatar bitbank2 commented on September 12, 2024

On the Mac, both files work correctly; I'll test it on an Arduino board tomorrow. I recently did some fixes to the library, are you sure you're running the latest version?

from animatedgif.

bitbank2 avatar bitbank2 commented on September 12, 2024

I just tested both of your updated files on a TTGO T-Display (ESP32 + ST7789 240x135 LCD) and they both play perfectly.

from animatedgif.

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

FYI, the latest version of AnimatedGIF has support for interlaced GIFs (thanks Larry!)

from animatedgif.

bitbank2 avatar bitbank2 commented on September 12, 2024

Thanks for helping to test the code :). I should have had interlaced support in from the beginning. I had confused the PNG interlacing with GIF and thought it would break my line-at-a-time code, but it was drop dead simple to add.

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.