This commit is contained in:
Julian Lam
2014-05-10 23:56:45 -04:00
parent 65dd79c84e
commit 4e0ccbf0c6

View File

@@ -15,10 +15,12 @@ image.resizeImage = function(path, extension, width, height, callback) {
gm().in(path)
.in('-coalesce')
.in('-resize')
.in(width+'x'+height)
.in(width+'x'+height+'^')
.write(path, done);
} else {
gm(path)
.in('-resize')
.in(width+'x'+height+'^')
.gravity('Center')
.crop(width, height)
.write(path, done);