Skip to content

How is Noun art encoded? #395

Discussion options

You must be logged in to vote

Noun parts are run-length encoded, which means repeating, same-color pixels in each row are grouped. The exact encoding for each noun part is: palette_index, bounds (top, right, bottom, left), [pixel_length, color_index][]

The bounds are the bounding box of the actual content within the 32x32 pixel grid. For more information, take a look the the on-chain art documentation.

You can use the @nouns/sdk to run-length encode PNG images.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by solimander
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants