v1.18.x
barisusakli 11 years ago
parent 53021d31b0
commit 8ce3e44d7b

@ -19,7 +19,8 @@ image.resizeImage = function(path, extension, width, height, callback) {
.write(path, done); .write(path, done);
} else { } else {
gm(path) gm(path)
.resize(width, height) .gravity('Center')
.crop(width, height)
.write(path, done); .write(path, done);
} }
}; };

Loading…
Cancel
Save