Skip to content

droidsize/resize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Repository for DroidSize.

Generate and batch process image resizing for different resolutions in Android.

Getting Started

This repository requires node ~0.10+ and express ~4.0+

Install imageMagick for your OS. In Mac, you can do this by:

brew install imageMagick

Install all the required packages:

npm install

To 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published