This is a requirable node module, rich documentation, and a *LIVE* API.
To require it, use require("notebook")("tolmasky/oil-paint-filter/16.0.0").
To access it as an API, go to https://tonicdev.io/tolmasky/oil-paint-filter/16.0.0?url=IMG_URL (you can also post data to it)
What follows is Literate Documentation:
This an implementation of an oil paint filter. Takes in a buffer and returns a buffer.
This is a port of the C# tutorial http://softwarebydefault.com/2013/06/29/oil-painting-cartoon-filter/, using the filter tutorial found at http://www.html5rocks.com/en/tutorials/canvas/imagefilters/
We'll set up our exports, and also just run it right in this document so we can see the result.