ionic cordova resources


Automatically create icon and splash screen resources

ionic cordova resources [<platform>] [options]

Ionic can automatically generate perfectly sized icons and splash screens from source images (.png, .psd, or .ai) for your Cordova platforms.

The source image for icons should ideally be at least 1024×1024px and located at resources/icon.png. The source image for splash screens should ideally be at least 2732×2732px and located at resources/splash.png. If you used ionic start, there should already be default Ionic resources in the resources/ directory, which you can overwrite.

You can also generate platform-specific icons and splash screens by placing them in the respective resources// directory. For example, to generate an icon for Android, place your image at resources/android/icon.png.

By default, this command will not regenerate resources whose source image has not changed. To disable this functionality and always overwrite generated images, use --force.

For best results, the splash screen's artwork should roughly fit within a square (1200×1200px) at the center of the image. You can use as a template for your splash screen.

ionic cordova resources will automatically update your config.xml to reflect the changes in the generated images, which Cordova then configures.

Cordova reference documentation:

This command uses Ionic servers and we require you to be logged into your free Ionic account. Use ionic login to login.

With the experimental --cordova-res option, ionic cordova resources will generate resources locally using the cordova-res utility.


ionic cordova resources ionic cordova resources iosionic cordova resources android




The platform for which you would like to generate resources (android, ios)




Force regeneration of resources




Generate icon resources




Generate splash screen resources




Use cordova-res instead of Ionic resource server