A python based NFT generator which programatically generates unique images using weighted layer files
![](https://www.deeplearningdaily.com/wp-content/uploads/2021/09/a-python-based-nft-generator-which-programatically-generates-unique-images-using-weighted-layer-files_614663c0d5327-375x210.jpeg)
nft-generator-py is a python based NFT generator which programatically generates unique images using weighted layer files. The program is simple to use, and new layers can be added by adding a new layer object and adding names, weights, and image files to the object. You can View The Demo here.
How it works
- A call to
generate_unique_images(amount, config)
is made, which is the meat of the application where all the processing happens. - The
config
object is read and for each object in thelayers
list, random values are selected and checked for uniqueness against all previously generated metadata files. - Once we have
amount
unique tokens created, we layer them against eachother and output them and their metadata to their respective folders,./metadata