image processing - How to convert filetype using GraphicsMagick for node.js -
how "convert" file 1 type using gm? (e.g .png > .jpg)
i found this doesn't seem the node.js version has same method:
you'll need change format of output file.
var writestream = fs.createwritestream("output.jpg"); gm("img.png").setformat("jpg").write(writestream, function(error){ console.log("finished saving", error); });
Comments
Post a Comment