Created
January 13, 2015 09:25
-
-
Save h4/351a4dca3b369d1604c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs') | |
, gm = require('gm'); | |
// resize and remove EXIF profile data | |
var fname = __dirname + '/square.svg'; | |
var newname = __dirname + '/square.png'; | |
gm(fname) | |
.options({imageMagick: true}) | |
.background('none') | |
.write(newname, function (err) { | |
if (!err) console.log('done'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment