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.
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
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
- Research and implement other algorithms
User controlled output fileResize image according to user input- Refactor code while learning it
- Publish it as crate
- Create documentation
Implement other effects