I am working on graphic magic in node.js
here is my code
gm('images/imagename').resize(200, 109, '^>').write('images/newimagename', function (err) {
});
Which is working fine. But problem is that, it is not mainlining the aspect ratio
Any idea ?
Thanks
Try this
gm('images/imagename').resize(200, 109, '^').write('images/newimagename', function (err) {
});
^ take care for aspect ratio