Initial release of the Progressive Blur package.
Features
- Apply a progressive blur effect to images
- Customizable blur parameters:
- `max_blur`: Maximum blur radius
- `clear_until`: Percentage of image to keep clear from top
- `blur_start`: Percentage where blur starts
- `end_y`: Percentage where maximum blur is reached
Installation
bash
pip install progressive-blur
from PIL import Image
from progressive_blur import apply_progressive_blur
Load image
image = Image.open("your_image.jpg")
Apply blur with default parameters
blurred = apply_progressive_blur(image)
Or with custom parameters
custom_blurred = apply_progressive_blur(
image,
max_blur=30.0,
clear_until=0.3,
blur_start=0.4,
end_y=0.9
)
Save the result
blurred.save("blurred_image.jpg")
Dependencies