The Pillow filter for Stack Blur.
Project description
pillow-stackblur
The Stack Blur filter for Pillow.
The Stack Blur Algorithm was invented by Mario Klingemann, mario@quasimondo.com and described here: http://incubator.quasimondo.com/processing/fast_blur_deluxe.php
This original C++ RGBA (32 bit color) multi-threaded version by Victor Laskin (victor.laskin@gmail.com) could be found here: http://vitiy.info/stackblur-algorithm-multi-threaded-blur-for-cpp
The python implementation is porting from C++ multi-threaded version. And wrap the implementation as a filter for pillow.
Example:
Blur the image with radius 10.
from PIL import Image
from stackblur import StackBlur
im = Image.open('img.png')
im = im.filter(StackBlur(10))
im.save('blurred_img.png')
Installation:
pip install pillow-stackblur
Please remember to install pillow
before using this library.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pillow_stackblur-0.0.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b95d3e6d65f913946f5279d31bf47af6e59707960d0752b27322e055085ab5a |
|
MD5 | 701528a45cf9c04e31d8df837e24cc2d |
|
BLAKE2b-256 | 50ca315f0e64e4a973d1572c0dc84c7729f9b55884669b1407a4ffa0164a8f9f |
Hashes for pillow_stackblur-0.0.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9638e397957a63a4b01908c7d6b500732f093bdde495a46116a7098290ae8296 |
|
MD5 | 7a75c6478b1ca79e03a231cf487c9230 |
|
BLAKE2b-256 | 735c61404e9f58464f3d1fff03ca10f86c4cf0b4cc4b4a6d70bf18e39b648020 |
Hashes for pillow_stackblur-0.0.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48736515e942733d7c8484dd995ed8c96ce3560c0f19eebc4542ce66154452f0 |
|
MD5 | 9ce71fd04668ede582a07fbb3916091d |
|
BLAKE2b-256 | 7fbad3f1e4f1bfe783fa0aaee497a5255d8f5a92378367734a5914cbf3143266 |