Socket
Socket
Sign inDemoInstall

effect

Package Overview
Dependencies
Maintainers
1
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

effect

Apply some effects on images using node js


Version published
Weekly downloads
834K
increased by51.71%
Maintainers
1
Weekly downloads
 
Created
Source

Effect

Effect

Effect is a node package that allows you to add effects on images.

Table of contents:

  • Dependencies
  • Installation
  • How does it work
  • License

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', /* optional, if not specified, the main image will be overwritten */
    level : 5, /* optional, level of the effect that will be applied (default value : 5) */
    size : 200, /* optional, you can resize your image while applying the effect (default value : 100%) */
 };
 
 var callback = function (error) {
    if(!error) {
        console.log("The effect was applied to your image !");
    }
 }
 
 effetc.blur(options, callback);

License

MIT

Keywords

FAQs

Package last updated on 21 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc