package
Minify images seamlessly
npm install imageminGitHub-flavored package documentation.
Across all versions, last 30 days.
4,062,458 in 30 days
Runtime metadata.
Tagged topics.
Estimated unpacked size across 38 packages.
2.1 MB
Includes dependencies.
Minify images seamlessly
npm install imageminimport imagemin from 'imagemin';
import imageminJpegtran from 'imagemin-jpegtran'
^1.1.0
1.6.0
^0.1.1
1.0.0
Returns Promise<object[]> in the format {data: Uint8Array, sourcePath: string, destinationPath: string}.
Type: string[]
File paths or glob patterns.
Type: object
Type: string
Set the destination folder to where your files will be written. If no destination is specified, no files will be written.
Type: Array
The plugins to use.
Type: boolean
Default: true
Enable globbing when matching file paths.
Returns Promise<Uint8Array>.
Type: Uint8Array
The image data to optimize.
Type: object
Type: Array
Plugins to use.