Effect
Effect is a node package that allows you to add effects on images.
Table of contents:
Dependencies:
This package depends on the software ImageMagick, you need to get it installed before being able to use Effect package.
Installation
$ npm install effect
How does it work
After requiring the effect module :
var effect = require('effect');
you can use the following method (effects):
- blur
- gaussian
- sharpen
- unsharp
- threshold
- oilpaint
- sketch
- metal
- edge
Every method's name gives an idea on the effect that will be applied on the specified image.
The arguments of all the methods are the same, let's take the method blur
as example:
var options = {
image : './path/to/your/image.jpg',
to : './path/to/target.jpg',
level : 5,
size : 200,
};
var callback = function (error) {
if(!error) {
console.log("The effect was applied to your image !");
}
}
effetc.blur(options, callback);
License
MIT