diff --git a/commands/edit-avatar/eject.js b/commands/edit-avatar/eject.js index 4a2d0767..ed63271b 100644 --- a/commands/edit-avatar/eject.js +++ b/commands/edit-avatar/eject.js @@ -63,7 +63,7 @@ module.exports = class EjectCommand extends Command { imposter = bool()(random); } const text = `${user.username} was${imposter ? ' ' : ' not '}An Imposter.`; - const encoder = new GIFEncoder(320, 180, 'octree', true); + const encoder = new GIFEncoder(320, 180, 'neuquant', true); const canvas = createCanvas(320, 180); const ctx = canvas.getContext('2d'); ctx.textAlign = 'center'; diff --git a/commands/edit-avatar/fire.js b/commands/edit-avatar/fire.js index bf0a9a95..6c9ecd8e 100644 --- a/commands/edit-avatar/fire.js +++ b/commands/edit-avatar/fire.js @@ -45,7 +45,7 @@ module.exports = class FireCommand extends Command { await reactIfAble(msg, msg.author, LOADING_EMOJI_ID, '💬'); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); - const encoder = new GIFEncoder(avatar.width, avatar.height, 'octree', true); + const encoder = new GIFEncoder(avatar.width, avatar.height, 'neuquant', true); const canvas = createCanvas(avatar.width, avatar.height); const ctx = canvas.getContext('2d'); encoder.start(); diff --git a/commands/edit-avatar/matrix.js b/commands/edit-avatar/matrix.js index 5f041ad7..438694c4 100644 --- a/commands/edit-avatar/matrix.js +++ b/commands/edit-avatar/matrix.js @@ -51,7 +51,7 @@ module.exports = class MatrixCommand extends Command { await reactIfAble(msg, msg.author, LOADING_EMOJI_ID, '💬'); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); - const encoder = new GIFEncoder(avatar.width, avatar.height, 'octree', true); + const encoder = new GIFEncoder(avatar.width, avatar.height, 'neuquant', true); const canvas = createCanvas(avatar.width, avatar.height); const ctx = canvas.getContext('2d'); encoder.start(); diff --git a/commands/edit-avatar/triggered.js b/commands/edit-avatar/triggered.js index 1ad1ba02..7308f233 100644 --- a/commands/edit-avatar/triggered.js +++ b/commands/edit-avatar/triggered.js @@ -45,7 +45,7 @@ module.exports = class TriggeredCommand extends Command { const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'triggered.png')); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); - const encoder = new GIFEncoder(base.width, base.width, 'octree', true); + const encoder = new GIFEncoder(base.width, base.width, 'neuquant', true); const canvas = createCanvas(base.width, base.width); const ctx = canvas.getContext('2d'); ctx.fillStyle = 'white'; diff --git a/commands/edit-image/pet.js b/commands/edit-image/pet.js index 0d0bf69f..bbae10a9 100644 --- a/commands/edit-image/pet.js +++ b/commands/edit-image/pet.js @@ -32,7 +32,7 @@ module.exports = class PetCommand extends Command { async run(msg, { image }) { const { body } = await request.get(image); const data = await loadImage(body); - const encoder = new GIFEncoder(112, 112, 'octree', true); + const encoder = new GIFEncoder(112, 112, 'neuquant', true); const canvas = createCanvas(112, 112); const ctx = canvas.getContext('2d'); encoder.start(); diff --git a/commands/edit-image/shake.js b/commands/edit-image/shake.js index 84800832..ffe8d52d 100644 --- a/commands/edit-image/shake.js +++ b/commands/edit-image/shake.js @@ -38,7 +38,7 @@ module.exports = class ShakeCommand extends Command { const base = await loadImage(body); const ratio = base.width / base.height; const height = 512 / ratio; - const encoder = new GIFEncoder(512, height, 'octree', true); + const encoder = new GIFEncoder(512, height, 'neuquant', true); const canvas = createCanvas(512, height); const ctx = canvas.getContext('2d'); encoder.start();