This is a web application for editing images with various filters and downloading the edited image.
- Introduction
- Technologies Used
- Features
- Usage
- How to Use
- JavaScript Functions
- Setting Up from GitHub
- Live Demo
- Credits
This project is a web-based image utility tool that allows users to upload images, apply various filters to them, and download the edited images.
- HTML
- CSS
- JavaScript
- Font Awesome (for icons)
- Dom-to-Image (for converting DOM elements to images)
- Upload images (JPEG, PNG)
- Apply various filters like grayscale, contrast, blur, brightness, invert, hue rotate, opacity, saturate, sepia, and border radius
- Reset filters to their default values
- Toggle between pixel and percentage values for border radius
- Maximize and minimize image display
- Download the edited image
- Share the edited image (if supported by the browser)
To use this tool, simply open the index.html
file in your web browser. Upload an image, apply filters using the controls provided, and then download or share the edited image.
-
Upload an Image:
- Click on "Choose File" to select an image from your device.
-
Apply Filters:
- Adjust the sliders for various filters like grayscale, contrast, blur, brightness, etc., to modify the image.
-
Reset:
- Click on the "Reset" button to reset all filters to their default values.
-
Maximize/Minimize Image:
- Click on the expand/compress button to maximize or minimize the displayed image.
-
Download Image:
- Click on the "Download" button to download the edited image.
-
Share Image (if supported):
- Click on the "Share" button to share the edited image, if your browser supports it.
- Updates the CSS filters applied to the image based on the current slider values.
- Initializes event listeners on all filter input sliders after an image is loaded.
- Removes all event listeners on filter input sliders and border radius input.
- Resets all filters and settings to their default values.
- Converts the displayed image to a PNG file using
dom-to-image
library.
- Various event listeners for buttons such as download, reset, maximize/minimize, and share.
- Loads the preloader and hides it after the content is loaded.
- Clone the repository to your local machine using
git clone <repository-url>
. - Open the project directory in your code editor.
- Open the
index.html
file in a web browser to use the application.
Image before editing
Image after editing
- Made with 💗 by Surojit
For more details, please check out the live demo or the code repository.