Socket
Socket
Sign inDemoInstall

cordova-splash

Package Overview
Dependencies
24
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-splash

Automatic splash screen cropping for Cordova


Version published
Weekly downloads
238
decreased by-3.64%
Maintainers
1
Install size
1.38 MB
Created
Weekly downloads
 

Readme

Source

cordova-splash

Automatic splash screen generator for Cordova. Create a splash screen once in the root folder of your Cordova project and use cordova-splash to automatically crop and copy it for all the platforms your project supports (currenty works with iOS, Android and Windows 10).

The splash screen image should be 2208x2208 px with a center square of about 1200x1200 px. The image may be cropped around the center square. You can also use larger images with similar proportions.

Installation

$ sudo npm install cordova-splash -g

If you are using an older version of cordova (before 7.x):

$ sudo npm install cordova-splash@0.12.0 -g

Requirements

  • ImageMagick installed (Mac: brew install imagemagick, Debian/Ubuntu: sudo apt-get install imagemagick, Windows: See here, install "Legacy tools")
  • At least one platform was added to your project (cordova platforms docs)
  • Cordova's config.xml file must exist in the root folder (cordova config.xml docs)

Usage

Create a splash.png file in the root folder of your cordova project and run:

$ cordova-splash

You also can specify manually a location for your config.xml or splash.png:

$ cordova-splash --config=config.xml --splash=splash.png

If you run a old version of Cordova for iOS and you need your files in /Resources/icons/, use this option:

$ cordova-splash --xcode-old
Notes:
  • Your config.ml file will not be updated by the tool (because images are automatically created in the good folders)
  • Therefore, in your config.xml, be sure to remove all lines looking like <splash src="res/screen/android/splash-land-mdpi.png" density="land-mdpi"/>

Icons

Check out cordova-icon

License

MIT

Keywords

FAQs

Last updated on 09 Feb 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc