I'm using gm module.This is my code:
gm(picture.path).thumb('250', '180', picture.thumb_path, 100, function (error) {
if(error) console.log(error);
});
But result size sometimes is 249x180. I need 250x180
I'm using gm module.This is my code:
gm(picture.path).thumb('250', '180', picture.thumb_path, 100, function (error) {
if(error) console.log(error);
});
But result size sometimes is 249x180. I need 250x180