[Solution] 'Ionic cordova resources' couldn't generate splash and icon

Version:

Ionic: 3.9.2

Cordova: 7.0.1

Using ‘ionic cordova resources’ will generate all-size splashs and icons for selected platforms automatically.

But this method depends on cloud service of ionic, so that when you can’t connect to network, this method would be failed.

There is a awesome tool can deal with these problem: cordova-resgen.

https://github.com/helixhuang/ionic-resources

This tool base on cordova-splash and cordova-icon, using graphicsmagic to cut pictures.

Usage:

1
2
3
4
5
brew install graphicsmagick
sudo npm install cordova-resgen -g

cd your-project
cordova-resgen