Gathering detailed insights and metrics for imagemin-pngquant
Gathering detailed insights and metrics for imagemin-pngquant
Gathering detailed insights and metrics for imagemin-pngquant
Gathering detailed insights and metrics for imagemin-pngquant
pngquant-bin
`pngquant` wrapper that makes it seamlessly available as a local dependency
@types/imagemin-pngquant
Stub TypeScript definitions entry for imagemin-pngquant, which provides its own types definitions
imagemin-pngquant-cn
Imagemin plugin for `pngquant`
imagemin-pngquant-chn
Imagemin plugin for `pngquant`
npm install imagemin-pngquant
Typescript
Module System
Min. Node Version
Node Version
NPM Version
87.4
Supply Chain
91.8
Quality
70.1
Maintenance
50
Vulnerability
98.9
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
323 Stars
113 Commits
82 Forks
9 Watchers
1 Branches
16 Contributors
Updated on Jun 22, 2025
Latest Version
10.0.0
Package Id
imagemin-pngquant@10.0.0
Unpacked Size
7.11 kB
Size
3.09 kB
File Count
5
NPM Version
10.6.0
Node Version
20.12.2
Published on
May 07, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
5
1npm install imagemin-pngquant
Linux machines must have the following packages prior to install:
libpng-dev libimagequant-dev
1sudo apt-get -y install libpng-dev libimagequant-dev
1import imagemin from 'imagemin'; 2import imageminPngquant from 'imagemin-pngquant'; 3 4await imagemin(['images/*.png'], { 5 destination: 'build/images', 6 plugins: [ 7 imageminPngquant() 8 ] 9}); 10 11console.log('Images optimized');
Returns Promise<Uint8Array>
.
Type: object
Type: number
Default: 4
Values: 1
(brute-force) to 11
(fastest)
Speed 10
has 5% lower quality, but is about 8 times faster than the default. Speed 11
disables dithering and lowers compression level.
Type: boolean
Default: false
Remove optional metadata.
Type: Array<min: number, max: number>
Values: Array<0...1, 0...1>
Example: [0.3, 0.5]
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 1 (perfect), similar to JPEG.
Type: number | boolean
Default: 1
(full)
Values: 0...1
Set the dithering level using a fractional number between 0 (none) and 1 (full).
Pass in false
to disable dithering.
Type: number
Truncate number of least significant bits of color (per channel). Use this when image will be output on low-depth displays (e.g. 16-bit RGB). pngquant will make almost-opaque pixels fully opaque and will reduce amount of semi-transparent colors.
Type: Uint8Array
Image data to optimize.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 7/30 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More