imagemin

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

npm install imagemin
25 downloads in the last day
159 downloads in the last week
476 downloads in the last month

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

npm loves you