MichaPipo / Generative_Gif_Engine

A generative engine that takes various png layers on a sprite sheet format, combines them and then converts them into a .gif file
MIT License
57 stars 37 forks source link

Random White Flashes when Generating GIF #9

Open barkoffsophia opened 2 years ago

barkoffsophia commented 2 years ago

I have 1000 different spritesheets (that generated perfectly) but when I run node script.js the GIFs are generated but there are random white fill (where there should be another color) on some of the frames of the gifs. I have tried playing around with the transparent color but I cant seem to figure out the issue. Any help would be greatly appreciated. I now have 1000+ sprite sheets and I need them to all be converted to individual gifs

jalagar commented 2 years ago

Hi @barkoffsophia try my tool https://github.com/jalagar/Generative_Gif_Engine. It takes png layers and turns them into generative gifs. Its forked from MichaPipo's library and adds enhancements to it.

Here's a medium article: https://jalagar-eth.medium.com/how-to-create-generative-animated-nft-art-in-under-an-hour-e7dab1785c56 on how it works. And here's the repo: https://github.com/jalagar/Generative_Gif_Engine Feel free to follow me on twitter: https://twitter.com/jalagar_eth for more updates. DM on Twitter or create an issue/discussion on the repo for a faster response. You can see all 1k of them on https://opensea.io/collection/genesis-bouncing-ball. Let me know if you have any questions!

Incognito777Radical commented 2 years ago

just comment out // line 59 of the script.js file,line says gif.setTransparent(Number("0x"+transparentcolor));

DogaLabs commented 8 months ago

We, at Doga Labs, are currently in the process of exporting our image frames into GIFs. However, we are encountering a similar issue with peculiar black areas displaying at reduced opacity. It appears as if the black has become slightly or completely transparent at certain moments during the playback of our GIF files. This phenomenon is puzzling because the defect does not manifest consistently. If the script were the culprit, one would expect the issue to occur uniformly across all images, but that is not the case.

@Incognito777Radical, we appreciate your suggestion and will be experimenting with your proposed method. We'll keep you informed about whether this addresses the problem.

DogaLabs commented 8 months ago

Problem solved, thanks to @Incognito777Radical. Indeed, line 59 is causing random issues.

jalagar commented 8 months ago

Hi there glad you were able to figure it out @DogaLabs !