Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
ImageMagick bindings for Node.js
C++ C
Branch: stable
Pull request Compare This branch is even with master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
LICENSE Initial Commit
Makefile
README.md
binding.gyp Initial Commit
package.json

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.

Something went wrong with that request. Please try again.