New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@node-minify/imagemin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-minify/imagemin

Imagemin plugin for @node-minify - Compress PNG, JPEG and GIF images

latest
Source
npmnpm
Version
10.5.0
Version published
Maintainers
1
Created
Source

node-minify

A very light minifier Node.js module.


npm version npm downloads Build Status code coverage

imagemin

imagemin is a plugin for node-minify

It allows you to compress PNG, JPEG, and GIF images using imagemin and its plugins (mozjpeg, pngquant, gifsicle).

Note: For new projects, consider using @node-minify/sharp which is more actively maintained and offers better performance.

Installation

npm install @node-minify/core @node-minify/imagemin

Usage

import { minify } from '@node-minify/core';
import { imagemin } from '@node-minify/imagemin';

// Compress image
await minify({
  compressor: imagemin,
  input: 'photo.jpg',
  output: 'photo.min.jpg',
  options: {
    quality: 80
  }
});

Options

OptionTypeDefaultDescription
qualitynumber80Quality setting for JPEG (0-100)
losslessbooleanfalseUse lossless compression for PNG
effortnumber6Compression effort for pngquant (1-10)
optimizationLevelnumber1Optimization level for gifsicle (1-3)

Included Plugins

  • imagemin-mozjpeg: JPEG compression
  • imagemin-pngquant: PNG compression
  • imagemin-gifsicle: GIF compression

Documentation

Visit https://node-minify.2clics.net for full documentation

License

MIT

Keywords

compressor

FAQs

Package last updated on 08 Mar 2026

Did you know?

Socket

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.

Install

Related posts