2
0
mirror of https://github.com/thumbsup/thumbsup synced 2024-11-03 15:40:14 +00:00

Better thumbnail quality

This commit is contained in:
rprieto 2014-04-21 08:12:28 +10:00
parent ca81058c26
commit 551d5d5752

View File

@ -19,6 +19,7 @@ exports.photo = function(opts, callback) {
.resize(exports.size, exports.size, "^") .resize(exports.size, exports.size, "^")
.gravity('Center') .gravity('Center')
.crop(exports.size, exports.size) .crop(exports.size, exports.size)
.quality(90)
.write(path.resolve(opts.thumbnail), callback); .write(path.resolve(opts.thumbnail), callback);
}; };