android-icon-resize

1.1.1 • Public • Published

android-icon-resize

Build Status Dependency Status devDependency Status Semantically Released

Create all required icons from one icon. Right size, right file name.

The default icon file names and required sizes for android are retrieved from the android-icons module.

The files created have the default names as you might want to use them, for example, in config.xml of a PhoneGap/Cordova project.

This also exists for iOS.

Install

$ npm install --save android-icon-resize

Usage

var resize = require('android-icon-resize');
 
resize('path/to/icon-large.png', 'output/icons/').then(function() {
    // icons have been created
});
 

CLI

$ npm install --global android-icon-resize
$ android-icon-resize --help
Create all required icons from one icon. Right size, right file name.
 
Example
  $ android-icon-resize -i path/to/icon.png -o path/to/output/
    

License

MIT © David Pfahler

Package Sidebar

Install

npm i android-icon-resize

Weekly Downloads

1

Version

1.1.1

License

MIT

Last publish

Collaborators

  • davidpfahler