In this project, we will use Python to generate a collection of unique profile-picture avatar by layering images from a directory. This is the technique used bymany popular NFT collections like Cryptopunks or Bored Ape.

πŸ–Ό Download Images: https://pixegami-public.s3.amazonaws.com/pixel-punk-avatar-images.zip
πŸ’» Code: https://github.com/pixegami/pixel-punk-avatars

Chapters

00:00 Introduction
01:10 Creating the image layers
04:00 Getting started with the project
10:45 Traversing the image directory for sub-paths
17:38 Picking a random image index for each layer
23:58 Using PIL to render the image
36:55 Generating 100x images at once
41:34 Adding rare elements and backgrounds
49:30 Wrapping up

Similar Posts:

Leave a comment