README
cordova-convert
This project is based on AlexDisler's projects cordova-icon and cordova-splash.
cordova-convert automatically creates icons and splash images for your cordova project by placing the images in their correct paths
supported files: jpeg, jpg, gif, png, svg
TODO:
- Write a better readme
- Add console debugging messages
Requirements
- 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)
Installation
Install cordova-convert globally
npm install cordova-convert -g
Usage
cordova-convert will look for icon.(jpg,jpeg,png,svg) and splash.(jpg,jpeg,png,svg) and config.xml in the current working directory
if no arguments are specified it will look for both, otherwise specify which to convert either --icon or --splash
you can also select a specific file with --icon-image=path-to-icon.png or --splash-image=path-to-splash.png
$ cordova-convert
$ cordova-convert --icon
$ cordova-convert --splash
$ cordova --icon --icon-image=path/to/image.png
Notes:
this package does not modify your config.xml file!
improvements and help are appreciated!
License
MIT