0.2.2 • Published 8 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.xml
file with the markup for the generated resources and platforms. - Create the
icon
andsplash
folders into theresources
folder for the right platforms if they don't exist.
Requirements
- Create a splash screen (
splash.png
2048x2048) & icon (icon.png
1024x1024) in theresources
folder of your phonegap/cordova project - Create root resources folder for the platforms your project supports (this is
resouces/ios
and/orresources/android
) - Cordova's
config.xml
file must exist in the root folder - use
splash-n-icons
command 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-icons
Usage
Create a splash.png
& icon.png
file in the resources
folder of your phonegap/cordova project and run:
splash-n-icons
Third party requirements
- ImageMagick
Install on a Mac using homebrew
:
brew update
brew install imagemagick
or using ports
:
port selfupdate
port install imagemagick
License
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.