
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
Minify images seamlessly with Node.js
$ npm install --save image-min
var Imagemin = require('image-min');
var imagemin = new Imagemin()
.src('foo.jpg')
.dest('foo-optimized.jpg')
.use(Imagemin.jpegtran({ progressive: true }));
imagemin.optimize(function (err, file) {
console.log(file);
// => { contents: <Buffer 89 50 4e ...>, mode: '0644' }
});
Creates a new Imagemin instance.
Add a plugin to the middleware stack.
Set the file to be optimized. Can be a Buffer or the path to a file.
Set the destination to where your file will be written. If you don't set any destination the file won't be written.
Optimize your file with the given settings.
Run all middleware plugins on your file.
The follwing plugins are bundled with image-min:
Compress GIF images.
var Imagemin = require('image-min');
var imagemin = new Imagemin()
.use(Imagemin.gifsicle({ interlaced: true }));
Compress JPG images.
var Imagemin = require('image-min');
var imagemin = new Imagemin()
.use(Imagemin.jpegtran({ progressive: true }));
Lossless compression of PNG images.
var Imagemin = require('image-min');
var imagemin = new Imagemin()
.use(Imagemin.optipng({ optimizationLevel: 3 }));
Lossy compression of PNG images.
var Imagemin = require('image-min');
var imagemin = new Imagemin()
.use(Imagemin.pngquant());
FAQs
Minify GIF, JPEG and PNG images
We found that image-min 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.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.