Normalize images to some predetermined height and width (https://github.com/dancingplatypus/grunt-imageNormalize).
grunt.js file add a section named
imageNormalize. This section specifies images to normalize and the size of those images.
You will need to have GraphicsMagick installed and available in your path
This defines what files this task will process and should contain key:value pairs.
This controls how this task (and its helpers) operate and should contain key:value pairs, see options below.
The height of the resulting image in pixels. If the aspect ratio does not match, it will be padded with a transparent background
The width of the resulting image in pixels. If the aspect ratio does not match, it will be padded with a transparent background
If this is false, then any files found in the sources will be flattened. Files of the same name will clobber one another
The offset into the source directory to use when preserving directories
imageNormalize:target:options:height: 640width: 640preserveDirectories: truebaseDirectory: "src"src:"src/images/**/*.png": "],dest: "public/images"}}