HashLips / hashlips_art_engine

HashLips Art Engine is a tool used to create multiple different instances of artworks based on provided layers.
MIT License
7.17k stars 4.3k forks source link

Generating 10k of file.gif with animation #861

Open sleiman88 opened 2 years ago

sleiman88 commented 2 years ago

when i use gif files is layers ,the software build only png static images .How can we update the software to provide image.gif

bolshoytoster commented 2 years ago

@sleiman88 I assume you can change export under gif to true in src/config.js: https://github.com/HashLips/hashlips_art_engine/blob/d8ee279043d2d4a8de3bdfac0d89d0e966fb04a2/src/config.js#L50-L52

Pinper6 commented 2 years ago

@bolshoytoster hi, sir.. i face the same issue. All layers files are .gif with animation, after running as you said, it creates three folders called: gifs, images, json..

  1. gifs folder: animation, yes.. but it combined with statics images source from following images folder.
  2. images folder: it's the PNG statics images of the .gif layers. combination is right
  3. json is alright. Engine can't read the animation file, just get the statics and save as PNG then do the rest. after test with default eyes layers, it show the gif is the just the combine sequence with layers... how can i fix it? thanks. 1
bolshoytoster commented 2 years ago

@Pinper6 sorry, the library we use for gifs doesn't support loading them.

jalagar commented 2 years ago

Hi @Pinper6 @sleiman88 I was able to build a tool to do exactly this! it takes png layers and turns them into generative gifs. Its forked from an earlier version of hashlips but I plan to update it to a more recent version soon.

Here's a medium article: https://jalagar-eth.medium.com/how-to-create-generative-animated-nft-art-in-under-an-hour-e7dab1785c56 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.

You can see all 1k of them on https://opensea.io/collection/genesis-bouncing-ball. Let me know if you have any questions!

Pinper6 commented 2 years ago

@jalagar great thanks for your help. it really helpful.

jalagar commented 2 years ago

You're welcome! Please add issues or discussion in the repo if you run into issues :)