Smart filter to remove Floyd-Steinberg dithering from paletted images
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
Cargo.toml
README.md

README.md

Undither

Smart filter to remove Floyd-Steinberg dithering from paletted images.

The tool analyses image palette to find optimal blurring threshold. For any two adjacent pixels, if the palette has a color that is between colors of these two pixels, then it's assumed to be an edge.

The algorithm is useful when converting PNG8 to JPEG or anim-GIF to video.

Usage

From CLI

Install Rust and then run:

cargo build --release --features=binary
./target/release/undither palette-image.png truecolor-output.png

As a library

See API reference.

Examples

Dithered Undithered
Dithered Undithered
Dithered Undithered