Bulk resize files to taste
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



Bulk resize files to taste

Getting Started

This plugin requires Grunt ~0.4.0

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install tape-measure

Once installed, just add this to your Gruntfile.js



Tape-measure accepts options on how to ouptut your images. In grunt.initConfig simply edit the following to taste:

  'tape-measure': {
    'options': {
      'excluded': ['03.jpg'],
      'sizes': [640, 768, 1024, 2048],
      'quality': 0.8,
      'progressive': false,

srcDir is a directory of images you wish to resize.

excluded is an array of any files that you wish to be skipped.

sizes is an array of sizes you wish to resize to. These will be the directory names created.

quality is the quality of the outputted image. (0-1)

progressive is the standard ImageMagick interlace setting

format is the outputted string

glob is the patter for selecting files in the srcDir