Utility for creating a generative art collection from supplied image layers, especially made for making NFT collectibles.
- Clone the repository by running
https://github.com/sem/NFT-Image-Generator.git
. - Install the dependencies
pip3 install -r requirements.txt
.
- Get an API key from Pinata.
- Open
config.json
and put the JWT (Secret access token) inapi_key
. - Adapt the config to your liking and make sure there is a sequential number at the beginning of each folder to represent the order of layers.
- Run
main.py
.
Before you start, make sure your file structure looks something like this:
NFT-Image-Generator/
โโ main.py
โโ config.json
โโ 1 background/
โ โโ red.png
โ โโ green.png
โ โโ blue.png
โโ 2 body/
โ โโ female.png
โ โโ male.png
โ โโ zombie.png
โโ 3 eyes/
โ โโ sun_glasses.png
โ โโ normal_eyes.png
โ โโ vr_glasses.png
- Generate metadata for direct use on OpenSea.
- Being able to update the image URL after the metadata is created.
- Automatically upload images and metadata to Pinata.
- Ensure that no duplicate images will appear in the collection.
- Create a .GIF profile picture for your collection.
- Give each image a rarity value.
- Influence rarity by giving layers a weight.