rounakbanik / generative-art-nft

A generative art library for NFT avatar and collectible projects.
MIT License
749 stars 369 forks source link

Fixed different leading zeros in filename in nft.py and metadata.py #21

Closed thomasoss closed 2 years ago

thomasoss commented 2 years ago

Using len( -1) for determining leading zeros in image file name. old: zfill_count = len(str(df.shape[0])) new: zfill_count = len(str(df.shape[0]-1)) According to nft.py. nft.py creates the file name for storing each image metadata.py creates the file name for the image URI to be stored in the json file for each image Old version not working for the first number with 2, 3, 4, ... digits (10 NFTs, 100 NFTs, 1000 NTFs, ...), because in this cases metadata.py would use one leading zero more than nft.py for the file name generation.