The Stack Blur filter for Pillow.
The Stack Blur Algorithm was invented by Mario Klingemann, email@example.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 (firstname.lastname@example.org) 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.
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')
pip install pillow-stackblur
Please remember to install
pillow before using this library.