Skip to content

HARSHAVINJAMURI/Photo_Editor-Web_Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Photo Editor Web App

This is a Streamlit-based Photo Editor Web Application built with Python. It allows users to upload an image and perform various editing operations including filters, sky styles, aspect ratio cropping, text addition, brightness/contrast adjustments, and color channel visualization. Users can also download the edited image, color channels, or colormapped images.


Features

1. Image Upload

  • Supports .jpg, .jpeg, and .png formats.
  • Displays the original uploaded image.

2. Image Rotation

  • Rotate images by 0°, 90°, 180°, 270°.

3. Aspect Ratio Crop

  • Crop the image to preset ratios:
    • 1:1, 4:3, 16:9, 9:16, 3:2, 21:9
  • Supports horizontal and vertical offset to choose which part of the image to keep.
  • Automatically fills extra space with white background if needed.

4. Adjusting Tools

  • Brightness, Contrast, Sharpness, Saturation sliders.
  • Vignette effect to add stylish focus.

5. Add Text

  • Add custom text to the image.
  • Options include:
    • Font size, text color.
    • Horizontal and vertical offsets.
    • 15 stylish system fonts like Arial, Verdana, Tahoma, Impact, Comic Sans MS, etc.

6. Filters

  • Apply popular filters:
    • Invert Colors, Grayscale, Old Film (Sepia), Outlines, Warm Tone, Cool Tone, Vintage Fade, High Contrast, Soft Pastel.
  • Adjust Filter Intensity.

7. Sky Styles

  • Enhance sky appearance with:
    • Bright Day, Golden Hour, Sunset Glow, Night Sky, Stormy Mood.
  • Adjust Sky Style Intensity.

8. Color Channels

  • Visualize Red, Green, and Blue channels individually.
  • Download each channel separately.

9. Colormapped Image

  • Convert image to grayscale and apply a wide variety of matplotlib colormaps.
  • Preview and download colormapped image.
  • Examples of colormaps: viridis, plasma, inferno, magma, cividis, hot, cool, spring, autumn, and more.

10. Download Options

  • Download Edited Image with a custom filename.
  • Separate download buttons for Color Channels and Colormap images.

Installation

  1. Clone the repository:
git clone https://github.com/your-username/photo-editor-webapp.git
  1. Navigate to the project folder:
cd photo-editor-webapp
  1. Install required dependencies:
pip install -r requirements.txt

How to Run

streamlit run app.py
  • The app will open in your default browser.
  • Upload your image and start editing.

Dependencies

  • Python 3.8+
  • Streamlit
  • Pillow
  • NumPy
  • Matplotlib

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author


About

Photo editor web application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages