Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
C++ Bindings to GraphicsMagick for NodeJS.
C++ JavaScript Python C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
tests
.gitignore
LICENSE
README.md
form-test.js
package.json
wscript

README.md

Merlin - ImageMagick bindings for node.js

Usage

var merlin = require('merlin');
// create a new MerlinImage with a node Buffer containing data from an image
var image = new merlin.MerlinImage(buffer);
var new_image = image.resize(300, 400);
// operations can be chained
var new_image = new_image.negative().crop(100, 100, 0, 0);
// when finished, get the buffer from the image
res.write(new_image.getBuffer());

Supported Operations

MerlinImage.blur(/*double*/ radius, /*double*/ sigma)
MerlinImage.charcoal(/*double*/ radius, /*double*/ sigma)
MerlinImage.chop(/*int*/ width, /*int*/ height, /*int*/ xoffset, /*int*/ yoffset)
MerlinImage.clip()
MerlinImage.clipPath(/*String*/ pathname, /*int*/ inside)
MerlinImage.crop(/*int*/ width, /*int*/ height, /*int*/ xoffset, /*int*/ yoffset)
MerlinImage.mosaic(/*MerlinImage*/ image0[,/*MerlinImage*/ image1.../*MerlinImage*/ imageN])
MerlinImage.negative()
MerlinImage.resize(/*int*/ width, /*int*/ height)
MerlinImage.rotate(/*double*/ degrees)

More to come!

Something went wrong with that request. Please try again.