Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/disusered/cordova-splash-gm
Automatic splash screen resizing for Cordova
https://github.com/disusered/cordova-splash-gm
Last synced: 5 days ago
JSON representation
Automatic splash screen resizing for Cordova
- Host: GitHub
- URL: https://github.com/disusered/cordova-splash-gm
- Owner: disusered
- License: mit
- Archived: true
- Fork: true (AlexDisler/cordova-icon)
- Created: 2014-11-02T02:15:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-02-20T17:36:30.000Z (almost 7 years ago)
- Last Synced: 2024-11-08T16:05:20.509Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 38.1 KB
- Stars: 6
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cordova - cordova-splash-gm
README
# cordova-splash-gm
Automatic splash screen resizing for Cordova. Add `splash.png` to the root folder of your Cordova project and use cordova-splash-gm to automatically resize, crop, copy and configure the splash screen for all current Android and iOS devices.
### Manual usage
1. `npm install -g cordova-splash-gm`
2. Place `splash.png` to the root folder of your Cordova project
3. Run `cordova-splash-gm`.### Automated usage
1. `npm install cordova-splash-gm --save-dev`2. Create `my-splash-hook.js`
```javascript
var splash = require('cordova-splash-gm');
module.exports = function() {
return splash.generate();
};
```3. Add hook to `config.xml`
```xml
```That's it. Now every time you `cordova add platform`, the splash screens will be auto generated.
### Requirements
- GraphicsMagick
- At least one platform was added to your project
- Cordova's config.xml file must exist in the root folder### Credits
All credit goes to [Alex Disler](https://github.com/AlexDisler) for his [cordova-icon](https://github.com/AlexDisler/cordova-icon) module, from which this project is forked from. The main changes are node's [imagemagick](https://www.npmjs.org/package/imagemagick) module is deprecated in favor of [gm](https://www.npmjs.org/package/gm) and the plugin can be used as a module in hooks.### License
MIT