A somewhat updated fork from GraphicsMagick for node
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
686 B

14 years ago
// gm - Copyright Aaron Heckmann <aaron.heckmann+github@gmail.com> (MIT Licensed)
module.exports = gm
14 years ago
function gm(source, height, color){
if (!(this instanceof gm))
return new gm(source, height, color)
14 years ago
this.data = {}
14 years ago
this._in = []
this._out = []
var width
if (height){
// new images
width = source
source = ""
this.arg(
[ "-size", width + "x" + height ]
.concat( color ? ['"xc:'+ color + '"'] : [] )
)
}
this.source = source
}
14 years ago
require("./lib/getters")(gm.prototype)
require("./lib/args")(gm.prototype)
require("./lib/drawing")(gm.prototype)
require("./lib/convenience")(gm.prototype)
require("./lib/command")(gm.prototype)