- Resize images
- Rotate images
- Add text overlay
- Convert images to black & white (grayscale)
git clone https://github.com/ekhbari/imgedit.git
cd imgedit
pip install -r requirements.txtpython imgedit.py resize -i input.jpg -o output.jpg --width 800 --height 600python imgedit.py rotate -i input.jpg -o output.jpg --angle 90python imgedit.py add_text -i input.jpg -o output.jpg -t "Hello World" --x 50 --y 100python imgedit.py bw -i input.jpg -o output.jpgThe project includes a sample font (Arial.ttf) inside the fonts/ folder, used for adding text on images.
You can replace it with any .ttf font you prefer.
- Make sure the input image path is correct.
- Output will overwrite if the file already exists.
- Works on Termux and any system with Python and dependencies installed.