I'm using node gm (GraphicsMagick for node), I wonder how to resize an image (ignoring its ratio).
How to resize an image without keeping its ratio?
To me this don't work I had to add an extra parameter to make it.
var gm = require('gm'); gm('/path/to/image.jpg') .resize(353, 257, "!") //Add exclamation mark .autoOrient() .write('/path/to/newImage.jpg', function (err) { if (!err) console.log(' hooray! '); });