Crates.io | undither |
lib.rs | undither |
version | 1.0.8 |
source | src |
created_at | 2017-10-20 13:05:06.319413 |
updated_at | 2023-11-15 01:45:34.620979 |
description | Smart filter to remove Floyd-Steinberg dithering from paletted images |
homepage | https://lib.rs/crates/undither |
repository | https://github.com/kornelski/undither.git |
max_upload_size | |
id | 36350 |
size | 26,936 |
Smart filter to remove Floyd-Steinberg dithering from paletted images. It's smarter than "smart blur", because it takes into account limitations of image palette to decide what not to blur.
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.
Install Rust and then run:
cargo install undither --features=binary
undither palette-image.png truecolor-output.png
See API reference.
Dithered | Undithered |
---|---|