Skip to content

Latest commit

Β 

History

History
87 lines (45 loc) Β· 1.89 KB

File metadata and controls

87 lines (45 loc) Β· 1.89 KB

🧰 Image Manipulation & Drawing App

🎯 Objective

Build an interactive CLI or Streamlit tool to perform image manipulation and drawing operations based on user input


πŸ”§ Instructions

  1. Ask user for image input:

    • File path (CLI) or upload image (Streamlit)
  2. Display Options:

    • 1. Image Manipulation & Transformation

    • 2. Basic Drawing Techniques


βœ‚οΈ If Option 1 Selected: Image Manipulation

Ask user: "What would you like to perform?"

Available Operations:

  1. Resizing & Scaling

    • User input: new dimensions or scale factors

    • Optional section selection:
      center, left, top-left, bottom-left, right, top-right, bottom-right, custom

  2. Cropping

    • Select section as above or enter coordinates manually
  3. Rotating

    • User input: angle in degrees
      (e.g., 90 β†’ CCW, -90 β†’ CW)
  4. Flipping

    • Choose from: vertical, horizontal, both

➑️ After Operation:

  • Show original and transformed image side-by-side

  • Ask: "Do you want to download the result?" β†’ Save if yes


πŸ–ŠοΈ If Option 2 Selected: Drawing Techniques

Ask user: "What would you like to draw?"

Available Drawing Options:

  1. Draw Line

  2. Draw Rectangle

  3. Draw Circle

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


πŸ“„ Solution & 🌐 App