mirror of
https://github.com/thumbsup/thumbsup
synced 2024-11-03 15:40:14 +00:00
Better thumbnail quality
This commit is contained in:
parent
ca81058c26
commit
551d5d5752
@ -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);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user