develop
Add `convert.rs`: a SIMD nearest-color search and a rayon-parallel `nordify_pixels` function. Add `error.rs` with the `NordifyError` type. Rewrite `lib.rs` to expose `NordifyOptions`, `nordify_image`, and `nordify_file` as the public API. Rewrite `main.rs` to parse CLI arguments with `argh` and call into `lib.rs`. Add `argh` and `thiserror` as dependencies.
Nordify (Rust)
A Rust reimplementation of nordify, a tool that converts images to the Nord palette without dithering artifacts.
Note
This project is in its infancy and probably not correct yet.
Why a Rust rewrite?
The original nordify is written in Python. The original project aims
to provide the same image conversion, without the artifacts typical of
naive dithering algorithms, as a fast, dependency-light single Rust
binary.
Usage
cargo run --release -- input.png -o output.png
Development
cargo build
cargo test
License
GPL-3.0-or-later
Languages
Rust
99.5%
Nix
0.5%