Skip to content

dbashford/mimosa-minify-img

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

mimosa-minify-img

Overview

This module will process all your images and optimize/minify them.

For more information regarding Mimosa, see http://mimosa.io.

Usage

Add 'minify-img' to your list of modules. That's all! Mimosa will install the module for you when you start up.

Functionality

Once this module has been added to your project, just execute mimosa minimage to create minified versions of your images in Mimosa's output directory.

When you've validated the minification mimosa minimage --overwrite will overwrite the images in your source directory with the minified versions.

Default Config

minifyImg: {
  options: {
    interlaced: false,
    progressive: false,
    optimizationLevel: 2
  },
  exts: [ "gif","jpeg","jpg","png" ]
}
  • options: an object. These are pass-through options to image-min.
  • exts: An array of strings, the extensions to run image minification on.

About

An image minification Mimosa module

Resources

Stars

Watchers

Forks

Packages

No packages published