pixIT is a fast, flexible command-line image editor built with Rust π¦. It allows you to perform a wide range of image transformationsβright from your terminal!
Navigate like a shell. Select your image. Transform it. All through the CLI.
- π Blur images with customizable intensity
- π Rotate by 90Β°, 180Β°, or 270Β°
- π€ Convert to Grayscale
- π Adjust Brightness
- ποΈ Tune Contrast
- π Modify Hue
- π Flip horizontally or vertically
- π Resize with custom width & height
- ποΈ Use familiar shell-like navigation (
cd,ls,select <image>)
- Rust & Cargo installed β Install Rust
Clone this repo and enter the directory:
git clone https://github.com/your-username/pixit.git
cd pixitRun any image operation using:
cargo run -- <command> --para <value>This drops you into an interactive terminal for selecting your image.
You can now use:
lsβ view current directory filescd <folder>β change directoryselect <filename>β select the image you want to edit
| Command | Parameter(Ex) | Description |
|---|---|---|
| blur | 0.5 | Apply blur (0.1 to 1.0) |
| rotate | 90 / 180 / 270 | Rotate image |
| grayscale | 0 | Convert to grayscale (just pass 0) |
| brighten | -10 / 10 | Brightness adjustment |
| contrast | -5.0 / 10.0 | Contrast adjustment (float) |
| hue_rotation | 30 / -45 | Hue shift in degrees |
| flip | hor / ver | Flip horizontally or vertically |
| resize | 300/300 | New width/height (format: width/height) |
cargo run -- blur --para 0.5
cargo run -- rotate --para 180
cargo run -- grayscale --para 0
cargo run -- brighten --para 20
cargo run -- contrast --para -10.5
cargo run -- hue_rotation --para 60
cargo run -- flip --para ver
cargo run -- resize --para 800/600After running any command, you'll see:
=> Now Select image (use `ls`, `cd <dir>`, and `select <image>`):
--> Use these commands to navigate:
lsβ list files and directoriescd foldernameβ change directoryselect image.jpgβ choose an image for editing
You can even use regular terminal commands like clear, echo, etc.
Once the operation completes, the edited image is saved with a modified name:
Examples:
- cat.jpg + rotate β cat_rotated.jpg
- dog.jpeg + blur β dog_blured.jpg
- sample.jpg + flip β sample_flipped.jpg
All edited images are saved in the same directory as the original.
pixit/
β
βββ src/
β βββ main.rs
β βββ Image_fns.rs
βββ Cargo.toml
βββ README.md
Pull requests are welcome! Feel free to fork and improve the tool.
Suggestions, issues, and improvements are appreciated β¨
Licensed under the MIT License.
Made with π by Yash