Increased sharpen effectiveness
This commit is contained in:
parent
6e7dcc679f
commit
8dbf0a3396
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ exports.run = async (message) => {
|
||||||
message.channel.sendTyping();
|
message.channel.sendTyping();
|
||||||
const image = await require("../utils/imagedetect.js")(message);
|
const image = await require("../utils/imagedetect.js")(message);
|
||||||
if (image === undefined) return `${message.author.mention}, you need to provide an image to sharpen!`;
|
if (image === undefined) return `${message.author.mention}, you need to provide an image to sharpen!`;
|
||||||
const buffer = await gm(image.path).coalesce().sharpen(10).bufferPromise(image.type, image.delay);
|
const buffer = await gm(image.path).coalesce().sharpen(10, 3).bufferPromise(image.type, image.delay);
|
||||||
return {
|
return {
|
||||||
file: buffer,
|
file: buffer,
|
||||||
name: `sharpen.${image.type}`
|
name: `sharpen.${image.type}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue