ImageMagick bindings for Node.js
C++ C
Latest commit 1dd829f Oct 22, 2012 @mlmorg mlmorg Initial Commit
Permalink
Failed to load latest commit information.
src
.gitignore Initial Commit Oct 22, 2012
LICENSE Initial Commit Oct 22, 2012
Makefile Initial Commit Oct 22, 2012
README.md Initial Commit Oct 22, 2012
binding.gyp Initial Commit Oct 22, 2012
package.json Initial Commit Oct 22, 2012

README.md

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.