@jimp/plugin-invert
TypeScript icon, indicating that this package has built-in type declarations

0.22.12 • Public • Published

@jimp/plugin-invert

Invert an image's colors.

Invert an image's colors.

Usage

  • @param {function(Error, Jimp)} cb (optional) a callback for when complete
import jimp from "jimp";

async function main() {
  const image = await jimp.read("test/image.png");

  image.invert();
}

main();

/@jimp/plugin-invert/

    Package Sidebar

    Install

    npm i @jimp/plugin-invert

    Weekly Downloads

    828,344

    Version

    0.22.12

    License

    MIT

    Unpacked Size

    10.7 kB

    Total Files

    10

    Last publish

    Collaborators

    • alisowski
    • oliver.moran