← Back to home

PNGEncoder Library

PNGEncoder library is a smart-contract providing functions to set pixel and encode out a PNG image suitable for tokenURI calls

Screenshots

PNGEncoder Library screenshot 1
PNGEncoder Library screenshot 2
PNGEncoder Library screenshot 3

Problem Statement

This project aims to provide the basic functionalities of image manipulation through as simple image rendering contract.PNGEncoder library is a smart-contract providing functions to set pixel and encode out a PNG image suitable for tokenURI calls.The current state of the art is a BMPEncoder library on Base https://base.blockscout.com/token/0xCc39Fe145eECe8a733833D7A78dCa7f287996693 this project aims to permit an higher maximum rendering size of 128x128 pixels

Solution

This project used IA to write the library and on the different ressources allowing to achieive this, not only it puts the smallet PNG ever "89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 01 00 00 00 01 01 00 00 00 00 37 6e f9 24 00 00 00 0a 49 44 41 54 78 01 63 60 00 00 00 02 00 01 73 75 01 18 00 00 00 00 49 45 4e 44 ae 42 60 82"

Hackathon

ETHGlobal Bangkok

2024

Prizes

  • 🏆

    OnchainKit Pool Prize

    Coinbase Developer Platform

Contributors