Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/disusered/cordova-icon-gm
Automatic icon resizing for Cordova
https://github.com/disusered/cordova-icon-gm
Last synced: 3 months ago
JSON representation
Automatic icon resizing for Cordova
- Host: GitHub
- URL: https://github.com/disusered/cordova-icon-gm
- Owner: disusered
- License: mit
- Archived: true
- Created: 2015-02-27T04:55:20.000Z (almost 10 years ago)
- Default Branch: develop
- Last Pushed: 2018-05-08T18:10:00.000Z (over 6 years ago)
- Last Synced: 2024-09-24T15:04:12.669Z (3 months ago)
- Language: JavaScript
- Size: 36.1 KB
- Stars: 4
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cordova - cordova-icon-gm
README
# cordova-icon-gm
Automatic icon resizing for Cordova. Add `icon.png` to the root folder of your Cordova project and use cordova-icon-gm to automatically resize, copy and configure the icon for all current Android and iOS devices.
### Manual usage
1. `npm install -g cordova-icon-gm`
2. Place `icon.png` to the root folder of your Cordova project
3. Run `cordova-icon`.### Automated usage
1. `npm install cordova-icon-gm --save-dev`2. Create `my-icon-hook.js`
```javascript
var icon = require('cordova-icon-gm');
module.exports = function() {
return icon.generate();
};
```3. Add hook to `config.xml`
```xml
```That's it. Now every time you `cordova add platform`, the icons 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 node [imagemagick](https://www.npmjs.org/package/imagemagick) module is deprecated in favor of [gm](https://www.npmjs.org/package/gm).### License
MIT