cordova-res-builder

Cordova icon and splash screen builder.

Usage no npm install needed!

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

README

cordova-res-builder

Generates iOS and Android App Icons and Splash Screens from a single input image.

Thanks to alexanderscott.

Installation

Install GraphicsMagick first. You can use Homebrew in Mac OSX:

$ brew install graphicsmagick  

Install cordova-res-builder via npm:

$ npm install -g cordova-res-builder  

Usage

$ cordova-res-builder [options] <file> <background-color hex-code> <output directory>  

Options:

-h, --help output usage information
-V, --version output the version number
--only-ios Only generate iOS icons
--only-android Only generate Android icons

Example

$ cordova-res-builder logo.png 000 res  

logo.png is a 2048x2048 image file.