Build an interactive CLI or Streamlit tool to perform image manipulation and drawing operations based on user input
-
Ask user for image input:
- File path (CLI) or upload image (Streamlit)
-
Display Options:
-
1. Image Manipulation & Transformation -
2. Basic Drawing Techniques
-
Ask user: "What would you like to perform?"
-
Resizing & Scaling
-
User input: new dimensions or scale factors
-
Optional section selection:
center,left,top-left,bottom-left,right,top-right,bottom-right,custom
-
-
Cropping
- Select section as above or enter coordinates manually
-
Rotating
- User input: angle in degrees
(e.g.,90β CCW,-90β CW)
- User input: angle in degrees
-
Flipping
- Choose from:
vertical,horizontal,both
- Choose from:
β‘οΈ After Operation:
-
Show original and transformed image side-by-side
-
Ask: "Do you want to download the result?" β Save if yes
Ask user: "What would you like to draw?"
-
Draw Line
-
Draw Rectangle
-
Draw Circle
-
Add Text
- Input text content and select position
β‘οΈ For all options:
- Position input using predefined locations:
center,left,top-left,bottom-left,right,top-right,bottom-right,custom
β‘οΈ After Operation:
-
Show original and modified image
-
Ask: "Do you want to download the result?" β Save if yes