Skip to content

Commit

Permalink
fit image to 128x128 and keep aspect ratio, closes #1240
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Mar 18, 2014
1 parent 6a4dd5c commit 6774f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ image.resizeImage = function(path, extension, width, height, callback) {
.write(path, done);
} else {
gm(path)
.crop(width, height, 0, 0)
.resize(width, height)
.write(path, done);
}
};
Expand Down

0 comments on commit 6774f0f

Please sign in to comment.