I think the best option is to use another library for pixelation (for example, the one you linked if you are not against the license). Raphael.js does not support these effects, as it is a vector library. You can convert SVG Raphael.js to an image and run effects on it - see .
Note. This is not a direct solution to your problem, but it is another alternative how to achieve the effect of pixelation (for other users looking for a solution).
There is a close-pixelate project. It is a script that can convert an image to a pixel version using the HTML5 canvas element and is licensed under the MIT license.
GitHub project page here . Additional examples can be found here .
Application:
document.getElementById('portrait-image').closePixelate([ { resolution : 24 }, { shape : 'circle', resolution : 24, size: 16, offset: 12, alpha: 0.5 } ]);
source share