Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jimp/plugin-invert

Package Overview
Dependencies
Maintainers
2
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimp/plugin-invert

invert an image.

  • 0.21.2--canary.1156.ba9fec9d0c9109924b4a5acab31bcaef8159a610.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is @jimp/plugin-invert?

@jimp/plugin-invert is a plugin for the Jimp image processing library that allows you to invert the colors of an image. This can be useful for various image manipulation tasks, such as creating negative images or enhancing visual contrast.

What are @jimp/plugin-invert's main functionalities?

Invert Colors

This feature inverts the colors of the image. The code reads an image from a specified path, inverts its colors, and then writes the modified image to a new file.

const Jimp = require('jimp');

Jimp.read('path/to/image.jpg')
  .then(image => {
    image.invert()
         .write('path/to/output.jpg');
  })
  .catch(err => {
    console.error(err);
  });

Other packages similar to @jimp/plugin-invert

FAQs

Package last updated on 05 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc