Uploaded February 2022 | Updated September 2026, 2 days ago
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: pixegami-public.s3.amazonaws.com/pixel-punk-avatar-images.zip
💻 Code: 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
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: pixegami-public.s3.amazonaws.com/pixel-punk-avatar-images.zip
💻 Code: 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










