Sort pixels in 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.
img
src
.gitignore
Cargo.toml
README.md

README.md

Imgsort

A Rust thingy that sorts the pixels in an image.

git clone https://github.com/alvare/imgsort
cd imgsort
cargo install
imgsort mypic.jpg out.png

It will also save the output image in any format supported by image.

Modes

For now the pixels can be sorted in 7 dimensions:

  • the 4 channels in RGBA
  • the 3 channels in HSL

For example

imgsort mypic.jpg lol.jpg --mode hue

will sort the pixels according to their hue values.

Examples

Original:

Original

Red sorted:

Red

Hue sorted:

Hue

Why

I'm just trying out the language 😁.