3 unstable releases
Uses new Rust 2024
new 0.2.0 | May 20, 2025 |
---|---|
0.1.1 | May 16, 2025 |
0.1.0 | May 16, 2025 |
#511 in Images
233 downloads per month
20KB
429 lines
palpngrs
Rust library for converting between Palettized images and PNGs. Palettized images are images that use an external colour palette to define their colours. This reduces the size of the images and is frequently used in older games. Rather than containing RGB pixels, Palettized images contain indices into a palette.
This library can read 256 RBG palettes and convert Palettized images to PNGs. It can also convert PNGs to Palettized images by looking up each pixel's RGB value in the palette.
Dependencies
~3MB
~55K SLoC