A python based NFT generator which programatically generates unique images using weighted layer files
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