New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

magick

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magick

ImageMagick bindings for Node.js

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
18
50%
Maintainers
1
Weekly downloads
 
Created
Source

Magick

ImageMagick bindings for Node.js.

Installation

$ npm install magick

Usage

var fs = require('fs');
var magick = require('magick');

// Load the file data into Magick
var data = fs.readFileSync('./image.jpg');
var file = new magick.File(data);

// Perform operations
file.setFormat('PNG');
file.opacity(0.5);
file.resize(200, 250);
file.blur(5);
file.paint(5);

// Get file and release memory
var buffer = file.getBuffer();
file.release();

// Write to new file
fs.writeFileSync('./image-altered.png', buffer);

License

Magick is distributed under the MIT License. See LICENSE for more details.

FAQs

Package last updated on 22 Oct 2012

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