Skip to content

babalolajnr/Image-Shifter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image-Shifter

Manipulate images from the terminal

Notice

⚠ Work in progress ⚠

How to use

Clone the repository and build the project. The run the excutable generated in the terminal

target\debug\rust-image-processor.exe <input> [output] <action> 

Commands

Grayscale

Convert image to black and white.

target\debug\rust-image-processor.exe <input> grayscale 

Brighten

Brighten the supplied image. value is the amount to brighten each pixel by. Negative values decrease the brightness and positive values increase it.

target\debug\rust-image-processor.exe <input> brighten --value <value> 

Huerotate

Hue rotate the supplied image. value is the degrees to rotate each pixel by. 0 and 360 do nothing, the rest rotates by the given degree value. just like the css webkit filter hue-rotate(180).

target\debug\rust-image-processor.exe <input> huerotate --value <value> 

Contrast

Adjust the contrast of the supplied image. contrast is the amount to adjust the contrast by. Negative values decrease the contrast and positive values increase the contrast.

target\debug\rust-image-processor.exe <input> contrast --contrast <value> 

Crop

Crop image. height is the height of the output image. width is the width of the output image. x is position of the top left corner on the x-axis. y is position of the top left corner on the y-axis.

target\debug\rust-image-processor.exe <input> crop --height <value> --width <value> --x <value> --y <value>  

About

Manipulate images from the terminal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages