An NFT avatar art collection hosted on IPFS and tokenized on Ethereum
I have a small startup and have various projects to learn and apply blockchain technology. This project is an NFT art collection in collaboration with my daughter Olivia, a talented young artist.
We are starting simple. She provides a basic set of image sets, and I do the rest.
This project is intended to be the first of many to showcase her artwork and demonstrate our abilities.
Creating the puppeeth NFT collection has two parts:
- Creating the unique artwork
- Creating the blockchain smart contract
The images are PNG files stores in the img/parts
directory.
Pups consist of a body, fur, face, ears, and shirt.
Each pup has a unique number 5 digits long, each digit ranging from 1 to 5.
Each value indicates which part variation the pup has, whether one, green, red, teal, or yellow.
For example, Pup 11111 is all blue, and Pup 22222 is all green, Pup 11222 is part blue and part green, and so on.
The collection is generated with a small python
script using the Pillow image library. A single loop iterates from Pup 11111 to Pup 55555, skipping any number with a digit greater than 5, combining the respective par images, and outputs the unique Ted into the img/collection
directory.
Please see generate_collection.py for more information on the algorithm.
Total NFTs: 3125 (5 parts ^ 5 variants)
Type | # in collection | Examples | Percentage |
---|---|---|---|
Original Variations | 5 | 11111, 22222, 33333 | 0.16% |
Single Part Difference | 100 | 11112, 22225, 44144 | 3.2% |
% time python3 generate_collection.py
python3 generate_collection.py 7761.16s user 87.18s system 638% cpu 20:28.44 total