Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

ios-splash-generate

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ios-splash-generate

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

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
7
40%
Maintainers
1
Weekly downloads
 
Created
Source

ios-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 iOS are retrieved from the ios-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 ios-splash-generate

Usage

var generate = require('ios-splash-generate');

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

CLI

$ npm install --global ios-splash-generate
$ ios-splash-generate --help
Generate all required splash screen images from one source. Right size, right file name.

Example
  $ ios-splash-generate -i path/to/source.png -o path/to/output/
	

License

MIT © David Pfahler

Keywords

cli

FAQs

Package last updated on 05 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts