How to use the gifwrap.GifUtil function in gifwrap

To help you get started, we’ve selected a few gifwrap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tt-bot-dev / tt.bot / util / workers / quantizeWorker.js View on Github external
pp.on("quantizeImage", async ({data, width, height}, cb) => {
    workingCount++;
    pp.send("workingCount", {id: WORKER_ID, working: workingCount});
    const f = new GifWrap.GifFrame({width, height, data: Buffer.from(data, "base64")});
    GifWrap.GifUtil.quantizeDekker([f]);
    workingCount--;
    pp.send("workingCount", {id: WORKER_ID, working: workingCount});
    cb({width: f.bitmap.width, height: f.bitmap.height, data: f.bitmap.data.toString("base64")});
});
(async () => {

gifwrap

A Jimp-compatible library for working with GIFs

MIT
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis