diff --git a/package.json b/package.json index 6fccabe..7daab8a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord-image-generation", - "version": "1.4.1", + "version": "1.4.2", "description": "discord-image-generation is a powerfull module that allow you to generate awesome images.", "main": "src/index.js", "scripts": { diff --git a/src/module/filters/blur.js b/src/module/filters/blur.js index 2b48590..3123fcd 100644 --- a/src/module/filters/blur.js +++ b/src/module/filters/blur.js @@ -9,7 +9,6 @@ module.exports = class Blur { async getImage(image, level) { if (!image) throw new Error(`You must provide an image.`); image = await jimp.read(image); - image.resize(480, 480); image.blur(isNaN(level) ? 5 : parseInt(level)); let raw; image.getBuffer(`image/png`, (err, buffer) => { diff --git a/src/module/filters/greyscale.js b/src/module/filters/greyscale.js index cbcb6df..d9dc65c 100644 --- a/src/module/filters/greyscale.js +++ b/src/module/filters/greyscale.js @@ -8,7 +8,6 @@ module.exports = class Geryscale { async getImage(image) { if (!image) throw new Error(`You must provide an image.`); image = await jimp.read(image); - image.resize(480, 480); image.greyscale(); let raw; image.getBuffer(`image/png`, (err, buffer) => { diff --git a/src/module/filters/invert.js b/src/module/filters/invert.js index 26fae2e..41d16a7 100644 --- a/src/module/filters/invert.js +++ b/src/module/filters/invert.js @@ -8,7 +8,6 @@ module.exports = class Invert { async getImage(image) { if (!image) throw new Error(`You must provide an image.`); image = await jimp.read(image); - image.resize(480, 480); image.invert(); let raw; image.getBuffer(`image/png`, (err, buffer) => { diff --git a/src/module/filters/sepia.js b/src/module/filters/sepia.js index 7876450..72089c2 100644 --- a/src/module/filters/sepia.js +++ b/src/module/filters/sepia.js @@ -8,7 +8,6 @@ module.exports = class Sepia { async getImage(image) { if (!image) throw new Error(`You must provide an image.`); image = await jimp.read(image); - image.resize(480, 480); image.sepia(); let raw; image.getBuffer(`image/png`, (err, buffer) => {