Small library to apply a transformations to a image relying on
image-filter-core handle the transformation and distribute work with webworkers.
This library is wrapper around the following smaller libraries:
So if you want to use only one or two of these filters you might be better of just including them directly.
npm install image-filters --save
At the moment there are three ways of usage, img element, imageData or url:
var imageFilter = ;// from a image elementvar elementOne = from: '#original' nWorkers;// from image datavar elementTwo = imageData: imageData nWorkers;// from urlvar elementThree = url: "" nWorkers;
Every transformation will return as imageData, but you have the possibility to get the result appended to the DOM.
//append to htmlimageFilter;
To run the samples in this module please run
npm run build && npm run serve and then access