Skip to content

Create 32 x 32 = 1024 pixels art as NFT on Polygon blockchain.

License

Notifications You must be signed in to change notification settings

michaelliao/1024pixels

Repository files navigation

1024 Pixels Art

1024pixels.art allows anyone create 32 x 32 = 1024 pixels GIF images and stores on Polygon blockchain which makes the image unique and immutable.

NFT Format

1024Pixels follow the ERC-721 standards, and supports ERC-165, ERC-2981.

Image Format

1024Pixels stores as 32x32 GIF format with 64 index colors (63 RGB colors and 1 transparent color). The tokenID is the hash of index colors so there are no same images on chain.

Only the pixels of index colors stores on chain, and there is exactly 1KB data stores on chain. The GIF image data is generated by read method on the fly, so no GAS cost for image generation!

How to Get Image from Blockchain

Read the contract 0x1024E76fbe54D1016f973FaD36f34ce94D9a128D:

imageURI() returns GIF image as Base64 encoded:

imageURI(tokenId) =>
"data:image/gif;base64,R0lGODlhYABgAPU/AP/AwP//wMD/wA..."

tokenURI() return JSON metadata including the image:

tokenURI(tokenId) =>
"data:application/json;base64,eyJuYW1lIjoiMTAyNCBQaXhlbHMgIy..."