Registry / devops / imgmini

imgmini

JSON →
library2.2.0jsnpmunverified

imgmini is a CLI tool for minifying images using gulp-imagemin under the hood. Version 2.2.0 is the latest and appears to be stable, with low release cadence. It offers a simple command-line interface to compress JPEG, PNG, GIF, and SVG files. Unlike API-based alternatives, it operates locally without network calls, but its functionality is basic and tied to older gulp ecosystem. No active development observed.

npm install imgmini
INSTALL
IMPORT
SIG · IMGMINI
I
imgmini
devopsjavascriptv2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import imgmini from 'imgmini'
import { imgmini } from 'imgmini'
imgmini is a CLI tool without a default export; programmatic use is not the primary use case.
CLI binary
npx imgmini image.jpg
imgmini image.jpg (requires global install)
Recommended usage via npx to avoid global install; binary name is 'imgmini'.
Gulp integration
import imgmini from 'gulp-imgmini'
const imgmini = require('imgmini')
If using Gulp, there is no separate plugin; see gulp-imagemin directly.

Minify images silently using npx without global installation.

npx imgmini -s image.jpg image2.png
Debug
Known issues
breakingDepends on older gulp-imagemin which may have compatibility issues with Node.js >= 18.
fix
Use sharp-based alternatives like imagemin-cli or consider sharp-cli.
affects: >=1.0.0
deprecatedPackage is no longer actively maintained; last update 4 years ago.
fix
Switch to maintained alternatives like sharp-cli or squoosh-cli.
affects: >=1.0.0
gotchaGlobal installation may conflict with other gulp-based tools.
fix
Use npx to run without global install.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'gulp-imagemin'
Missing dependency gulp-imagemin if using programmatic API.
fix
Install gulp-imagemin: npm install gulp-imagemin
imgmini: command not found
Not installed globally or npx not used.
fix
Run npx imgmini or install globally: npm install -g imgmini
TypeError: imgmini is not a function
Attempting to use CLI as a module incorrectly.
fix
Use the CLI via command line, not require/import.
Upgrade
Version history
2.2.0latest on npm
Audit
Dependencies
gulp-imageminrequiredCore dependency for image minification, inherited from gulp pipeline.
Agent activity
4 hits · last 30 days
node
4
Resources
imgmini — npm install imgmini · libregistry