Manipulate images from the terminal
⚠ Work in progress ⚠
Clone the repository and build the project. The run the excutable generated in the terminal
target\debug\rust-image-processor.exe <input> [output] <action>
Convert image to black and white.
target\debug\rust-image-processor.exe <input> grayscale
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>
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>
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 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>