Skip to content

clrnd/imgsort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 😁.

About

Sort pixels in images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages