Skip to content

This is a toy rust project that do Pixelliarmus spell on your pictures

Notifications You must be signed in to change notification settings

retikulum/pixelliarmus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixelliarmus

This is a toy rust project that does Pixelliarmus spell on your pictures with effects. In simpler terms, images are resized with the given factor and resized again to its original dimensions.

Install and Usage

You can clone the repository

git clone https://github.com/retikulum/pixelliarmus.git

Run it with cargo:

cargo run -- --input $path-of-the-image -f $factor -e $effect-name -r $widthxheight

Help:

cargo run -- --help

Demo

There is a little cat image in images folder. You can do pixelliarmus spell on it.

cargo run -- --input .\images\test.jpg -f 2

Original photo:

Only Pixelliarmus:

cargo run -- --input .\images\test.jpg -f 2

Pixelliarmus + Greyscale:

cargo run -- --input .\images\test.jpg -f 2 --effect greyscale

Pixelliarmus + Invert:

cargo run -- --input .\images\test.jpg -f 2 --effect invert

Now it supports different filter types:

Pixelliarmus + Gaussian:

cargo run -- --input .\images\test.jpg -f 2 -o .\test.jpg --filter-type gaussian

Pixelliarmus + Triangle:

cargo run -- --input .\images\test.jpg -f 2 -o .\test.jpg --filter-type triangle

Pixelliarmus + Greyscale + Gaussian:

cargo run -- --input .\images\test.jpg -f 2 -o .\test.jpg -effect greyscale --filter-type gaussian

Future Work

  • Research and implement other algorithms
  • User controlled output file
  • Resize image according to user input
  • Refactor code while learning it
  • Publish it as crate
  • Create documentation
  • Implement other effects

About

This is a toy rust project that do Pixelliarmus spell on your pictures

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages