azureblur
The triple box blur implementation from Firefox’s moz2d / Azure, with Python bindings.
- Documentation: https://pythonhosted.org/azureblur/
- Source and issues: https://github.com/SimonSapin/azureblur
- Install with
pip install azureblur
. This requireslibffi-dev
,python-dev
, and a C/C++ compiler. See CFFI documentation.
This library only supports 2D raster images with a single channel of one byte per pixel. Such images are typically used as a mask that affects the alpha (transparency) channel of some other source.
See for example the code that generates the image below, using this library for blurring the shadow and the cairocffi 2D graphics library.