0.2.2 • Published 10 years ago
splash-n-icons v0.2.2
Splash'n'Icons
splash'n'icons combine together to get you rid of the concern of resources/assets generation for a Cordova/Phonegap project. Strongly based, inspired and forked from phonegap-res :+1:
Features
- Automatic splash screen & icon generator for PhoneGap/Cordova 5+.
- Update
config.xmlfile with the markup for the generated resources and platforms. - Create the
iconandsplashfolders into theresourcesfolder for the right platforms if they don't exist.
Requirements
- Create a splash screen (
splash.png2048x2048) & icon (icon.png1024x1024) in theresourcesfolder of your phonegap/cordova project - Create root resources folder for the platforms your project supports (this is
resouces/iosand/orresources/android) - Cordova's
config.xmlfile must exist in the root folder - use
splash-n-iconscommand to automatically crop and copy it for all the platforms your project supports (currenty works with iOS and Android). - No need to have a platform installed in your project
Installation
sudo npm install -g splash-n-iconsUsage
Create a splash.png & icon.png file in the resources folder of your phonegap/cordova project and run:
splash-n-iconsThird party requirements
- ImageMagick
Install on a Mac using homebrew:
brew update
brew install imagemagickor using ports:
port selfupdate
port install imagemagickLicense
MIT
Future?
Nobody knows about the future, but it should be good:
- Support cli arguments
- Generate icons or splash screens
- Choose between cropping or resizing when generating splash (currently is cropping)
- Add more platforms.