Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

android-splash-generate

1.0.2 • Public • Published

android-splash-generate

Build Status Dependency Status devDependency Status

Generate all required splash screen images from one source. Right size, right file name.

The default splash screen image file names and required sizes for android are retrieved from the android-splash 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 and the correct dimensions.

How does it work?

A 2208x2208 source image gets scaled first and then cropped to the target dimensions. If you put the relevant part (logo, text, etc.) of your splash screen in the exact center of your source image, this means that the resulting images are all going to be centered as well.

Install

$ npm install --save android-splash-generate

Usage

var generate = require('android-splash-generate');
 
generate('path/to/source.png', 'output/splash/').then(function() {
    // splash images created
});
 

CLI

$ npm install --global android-splash-generate
$ android-splash-generate --help
Generate all required splash screen images from one source. Right size, right file name.
 
Example
  $ android-splash-generate -i path/to/source.png -o path/to/output/
    

License

MIT © David Pfahler

install

npm i android-splash-generate

Downloadsweekly downloads

2

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability