
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@jimp/plugin-invert
Advanced tools
@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.
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);
});
Sharp is a high-performance image processing library that supports a wide range of image transformations, including color inversion. It is known for its speed and efficiency, especially with large images.
GraphicsMagick (gm) is a comprehensive image processing library that provides a wide array of image manipulation features, including color inversion. It is a Node.js wrapper for the GraphicsMagick command-line tool.
Image-js is a versatile image processing library for JavaScript that supports various image manipulation tasks, including color inversion. It is designed to be easy to use and integrate into web applications.
Invert an image's colors.
Invert an image's colors.
import jimp from "jimp";
async function main() {
const image = await jimp.read("test/image.png");
image.invert();
}
main();
v0.22.12 (Fri Feb 23 2024)
:tada: This release contains work from a new contributor! :tada:
Thank you, Dathan (@DLiblik), for all your work!
@jimp/core
FAQs
invert an image.
The npm package @jimp/plugin-invert receives a total of 946,859 weekly downloads. As such, @jimp/plugin-invert popularity was classified as popular.
We found that @jimp/plugin-invert demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.