Skip to content

khush1709/Bokeh-effect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bokeh Effect Web App

This repository contains a simple web application that applies a Bokeh effect to an uploaded image. The application is built using Flask, a Python web framework, and utilizes the Pillow library (PIL) for image processing.

Bokeh

Files and Directory Structure

  • index.py: The main Python script containing the Flask application. It handles the web routes, image processing, and file uploads.

  • templates/index.html: HTML template for the web interface. It includes a form for uploading an image file.

  • upload: Directory to store uploaded images. It contains both the input image (input.jpg) and the output image with the Bokeh effect applied (output.jpg).

Setup

  1. Clone the repository:

    git clone https://github.com/khush1709/Bokeh-effect.git
  2. Install the required dependencies. You can use the following command in the terminal:

    pip install Flask Pillow

How to Run

  1. Navigate to the project directory.

    cd Bokeh-effect
  2. Run the Flask application.

    python index.py
  3. Open your web browser and go to http://127.0.0.1:5000/ to access the Bokeh Effect Web App.

Usage

  1. The main page displays a form with a file input and a button.

  2. Choose an image file using the file input.

  3. Click the "Upload and Apply Bokeh Effect" button to process the image.

  4. The processed image with the Bokeh effect applied will be available for download.

Notes

  • The uploaded images are temporarily stored in the uploads directory.

  • The Bokeh effect is applied using the GaussianBlur filter from the Pillow library.

  • The web interface is styled with simple CSS for a clean and responsive design.

Feel free to explore and modify the code to enhance or customize the Bokeh effect web application according to your preferences.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published