
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
imagemin-pngquant-vendor
Advanced tools
pngquant imagemin plugin
$ npm install --save imagemin-pngquant
const imagemin = require('imagemin');
const imageminPngquant = require('imagemin-pngquant');
imagemin(['images/*.png'], 'build/images', {use: [imageminPngquant()]}).then(() => {
console.log('Images optimized');
});
Returns a Promise
for a Buffer
.
Type: number
boolean
Default: 0.5
Controls level of dithering (0 = none, 1 = full).
Type: boolean
Default: false
Disable Floyd-Steinberg dithering.
Type: number
Reduce precision of the palette by number of bits. Use when the image will be displayed on low-depth screens (e.g. 16-bit displays or compressed textures).
Type: string
Instructs pngquant to use the least amount of colors required to meet or exceed the max quality. If conversion results in quality below the min quality the image won't be saved.
Min and max are numbers in range 0 (worst) to 100 (perfect), similar to JPEG.
Type: number
Default: 3
Speed/quality trade-off from 1
(brute-force) to 10
(fastest). Speed 10
has
5% lower quality, but is 8 times faster than the default.
Type: boolean
Default: false
Print verbose status messages.
Type: Buffer
Stream
Buffer or stream to optimize.
MIT © imagemin
FAQs
pngquant imagemin plugin
We found that imagemin-pngquant-vendor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.