SoftFocus is a Python application that allows you to blur images using the PIL (Python Imaging Library). It provides a simple interface to apply Gaussian blur to images, resulting in softened and blurred versions of the original images.
- Blur images using Gaussian blur algorithm
- Adjustable blur radius to control the level of blur
- Supports common image formats such as JPEG, PNG, etc.
- Easy-to-use command-line interface
- Python 3.x
- PIL (Python Imaging Library)
-
Clone this repository to your local machine:
git clone https://github.com/Bilguun04/soft-focus.git
-
Install the required dependencies using pip:
pip install pillow
-
Navigate to the project directory:
cd soft-focus
-
Run the script with the following command:
python blur_image.py input_image.jpg output_image.jpg
Replace
input_image.jpg
with the path to your input image file andoutput_image.jpg
with the desired path to save the blurred image.You can also specify an optional blur radius (default is 2) by adding it as a third argument:
python blur_image.py input_image.jpg output_image.jpg 5
-
The blurred image will be saved to the specified output path.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue on GitHub or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.