
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@jimp/plugin-color
Advanced tools
@jimp/plugin-color is a plugin for the Jimp image processing library that provides various color manipulation functionalities. It allows users to perform operations such as adjusting brightness, contrast, and applying color filters to images.
Adjust Brightness
This feature allows you to adjust the brightness of an image. The value can range from -1 (darken) to 1 (brighten).
const Jimp = require('jimp');
Jimp.read('path/to/image.jpg').then(image => {
image.brightness(0.5) // increase brightness by 50%
.write('path/to/output.jpg');
});
Adjust Contrast
This feature allows you to adjust the contrast of an image. The value can range from -1 (decrease contrast) to 1 (increase contrast).
const Jimp = require('jimp');
Jimp.read('path/to/image.jpg').then(image => {
image.contrast(0.5) // increase contrast by 50%
.write('path/to/output.jpg');
});
Apply Color Filter
This feature allows you to apply a color filter to an image. You can specify the color and the intensity of the filter.
const Jimp = require('jimp');
Jimp.read('path/to/image.jpg').then(image => {
image.color([{ apply: 'red', params: [100] }]) // apply red filter
.write('path/to/output.jpg');
});
Sharp is a high-performance image processing library that supports various color manipulation functionalities such as brightness, contrast, and color filters. It is known for its speed and efficiency compared to Jimp.
GraphicsMagick (gm) is a powerful image processing library that provides extensive color manipulation features. It is more feature-rich and can handle a wider range of image formats compared to Jimp.
Image-js is a versatile image processing library that offers various color manipulation functionalities. It is designed to be easy to use and integrates well with other JavaScript libraries.
FAQs
Unknown package
The npm package @jimp/plugin-color receives a total of 1,177,138 weekly downloads. As such, @jimp/plugin-color popularity was classified as popular.
We found that @jimp/plugin-color demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.