Export multiple sizes from an image
This plugin requires GraphicsMagick and Grunt
brew install graphicsmagick
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 grunt-multiresize --save-dev
The "multiresize" task
In your project's Gruntfile, add a section named
multiresize to the data object passed into
The original file to be resized.
The files to be written by this script.
The image dimensions expected. The format can be
Background color, default
transparent. The format described here.
Quality of output image, default
Outputting all icons
This project was originally created to resize our project icons to conform to CoronaSDK spec. This is our config file.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
v0.1.0: Initial release