https://github.com/silo/ion-resources
Automatic generate Icon and Splash for IONIC and Cordova
https://github.com/silo/ion-resources
android cordova generator icon ionic ios splash
Last synced: 4 months ago
JSON representation
Automatic generate Icon and Splash for IONIC and Cordova
- Host: GitHub
- URL: https://github.com/silo/ion-resources
- Owner: silo
- License: mit
- Created: 2018-04-26T07:52:20.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-29T12:08:38.000Z (about 8 years ago)
- Last Synced: 2025-10-22T21:56:32.266Z (8 months ago)
- Topics: android, cordova, generator, icon, ionic, ios, splash
- Language: JavaScript
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ion-resources
Base on [https://github.com/AlexDisler/cordova-splash](https://github.com/AlexDisler/cordova-splash) and [https://github.com/AlexDisler/cordova-icon](https://github.com/AlexDisler/cordova-icon) and [https://github.com/helixhuang/ionic-resources](https://github.com/helixhuang/ionic-resources)
Automatic splash screen and icon generator for Cordova/Ionic alternative for ionic cloud generator.
Create a splash screen (2732x2732) and an icon (1024x1024) once in the resources folder of your Cordova project and use cordova-resgen to automatically crop and copy it for all the platforms your project supports (currenty works with iOS, Android and Windows 10).
### Installation
Install it globally:
`$ npm install ion-resources -g`
run it with:
``ion-resources``
or install it locally:
`$ npm install ion-resources --save`
then you can run it like this:
`./node-modules/.bin/ion-resources`
### Requirements
- GraphicsMagick installed (*Mac*: `brew install graphicsmagick`, *Debian/Ubuntu*: `sudo apt-get install graphicsmagick`, *Windows*: [See here](http://www.graphicsmagick.org/INSTALL-windows.html))
- At least one platform was added to your project ([cordova platforms docs](http://cordova.apache.org/docs/en/edge/guide_platforms_index.md.html#Platform%20Guides))
- Cordova's config.xml file must exist in the root folder ([cordova config.xml docs](http://cordova.apache.org/docs/en/edge/config_ref_index.md.html#The%20config.xml%20File))
### Usage
Create a `splash.png` and a 'icon.png' file in the root folder of your cordova project and run:
$ ionic-resources
$ ionic-resources --icon
$ ionic-resources --splash
### License
MIT