#Repository for DroidSize.
Generate and batch process image resizing for different resolutions in Android.
This repository requires node ~0.10+ and express ~4.0+
Install imageMagick for your OS. In Mac, you can do this by:
brew install imageMagickInstall all the required packages:
npm installTo correctly process png files you need to edit the node-easyimage module.
Open 'node_modules/easyimage/easyimage.js' and edit the following lines:
if (stderr.match(/^identify:/)) {
deferred.reject(new Error(error_messages['unsupported']));
}to match something like this:
if (stderr.match(/^null/)) {
deferred.reject(new Error(error_messages['unsupported']));
}That is a vey hackish way to do things, but it allows me to process png files without throwing an error. There is already a pull request that deals with this error, I will try to update accordingly.