-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help with some minorly corrupted gifs #65
Comments
Testing your gif above, it does seem to render fine for me. Have a look in https://github.com/matt-way/gifuct-js/blob/master/demo/demo.js to see how some basic rendering is done. I suspect the problem has something to do with treating each frame individually, and not as patches over the gif itself. |
I think so too. The display works fine on a canvas (since it patches to the same canvas.) Maybe on each frame, I should grab a copy of previous frame first. |
Hi, first thanks for making this very useful library.
I am working on a tool to turn a gif into code for display on an OLED. You can see the tool here. For the most part it works pretty well. Basically I use gifuct to load the gif, split it into canvases for each frame, then apply a dither, then from there output different kinds of code.
I noticed that some gifs have issues, like this:
input
output
The issue is what looks kinda like lightning when the Voltrons are dancing.
At first I thought it was the gif output lib I am using gifenc, because I didn't see the problem on the preview-canvas, but I tested the outputted code on a real OLED, too, and it showed up. I figured it was a problem with transparency, so I tried filling the canvas before drawing, and it made the problem show up on the preview-canvas as well. I also tried adding
{alpha: false}
to the context, which did not seem to help.Here is how I load it:
Do I need to do something else to make sure it's a complete no-transparency frame?
The text was updated successfully, but these errors were encountered: