Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pillow-stackblur, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pillow_stackblur-0.0.2-cp35-cp35m-manylinux1_x86_64.whl (21.6 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size pillow_stackblur-0.0.2-cp36-cp36m-manylinux1_x86_64.whl (21.9 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size pillow_stackblur-0.0.2-cp37-cp37m-manylinux1_x86_64.whl (20.6 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size pillow-stackblur-0.0.2.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page