Skip to content

The Stack Blur filter for Python Pillow (PIL)

Notifications You must be signed in to change notification settings

dldevinc/pillow-stackblur

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pillow-stackblur

The Stack Blur filter for Pillow.

The Stack Blur Algorithm was invented by Mario Klingemann, [email protected] 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 ([email protected]) 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.

About

The Stack Blur filter for Python Pillow (PIL)

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • C 73.7%
  • Python 26.3%