Skip to content

Sahihx/imgedit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imgedit

  • 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.txt

Examples

Resize image

python imgedit.py resize -i input.jpg -o output.jpg --width 800 --height 600

Rotate image

python imgedit.py rotate -i input.jpg -o output.jpg --angle 90

Add text to image

python imgedit.py add_text -i input.jpg -o output.jpg -t "Hello World" --x 50 --y 100

Convert to black & white

python imgedit.py bw -i input.jpg -o output.jpg

Fonts

The 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.


Notes

  • 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.

About

A lightweight and easy-to-use command-line image editor

Topics

Resources

License

Stars

Watchers

Forks

Languages