JSPM

  • Created
  • Published
  • Downloads 1107927
  • Score
    100M100P100Q175081F

A tool to optimize png and jpg images with optipng & jpegtran

Package Exports

  • imagemin
  • imagemin/package
  • imagemin/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (imagemin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

imagemin

A tool which fork from grunt-img to optimize PNG and JPG images with pngcrush & jpegtran (jpegtran-turbo on win32).

Getting Started

First, be sure that you have jpegtran installed in your system.

for Mac users

You can install with homebrew

brew install jpeg

for Linux users

Debian, Ubuntu and Mint

apt-get install libjpeg libjpeg-progs

Both libraries are easy to find for RPM distributions too.

for Windows users

Don't worry because both libraries are included.

Install

npm install imagemin

How to use

for shell

imagemin file/path
imagemin file/path -o new/file/path

for nodejs

var imagemin = require('imagemin');
imagemin(filePath, destDir, callback);

Credits