Skip to content

clrnd/imgsort

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
img
 
 
src
 
 
 
 
 
 
 
 

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