Socket
Socket
Sign inDemoInstall

@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.


Version published
Weekly downloads
1.3M
increased by3.93%
Maintainers
2
Weekly downloads
 
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 21 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