cordova-convertdeprecated

A tool to create icons and splash images for a cordova project

Usage no npm install needed!

<script type="module">
  import cordovaConvert from 'https://cdn.skypack.dev/cordova-convert';
</script>

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

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