mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 15:57:43 +02:00
Use octree with optimizer
This commit is contained in:
@@ -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);
|
||||
const encoder = new GIFEncoder(112, 112, 'octree', true);
|
||||
const canvas = createCanvas(112, 112);
|
||||
const ctx = canvas.getContext('2d');
|
||||
encoder.start();
|
||||
|
||||
Reference in New Issue
Block a user