genicon-cli
v1.0.6
Published
Generate icons for mobile apps and broswer extensions/plugins.
Downloads
14
Maintainers
Readme
genicon-cli
Generate icons for mobile apps and browser extensions/plugins
Install
$ npm install --global genicon-cli
Note: Make sure to install GraphicsMagick as well.
Usage
$ genicon --help
Usage
$ genicon <file>
Options
--platform, -p Platform to generate icons for
--background, -b Color of the icon background if the icon is transparant [Default: white]
--contentRatio, -r Logo-icon ratio [Default: 1]
--roundedCorners Generate icons with rounded corners [Default: true for pwa and Android]
--borderRadius Border radius percentage [Default: 0.0909]
--out, -o Output directory [Default: cwd]
Examples
$ genicon icon.png -p=chrome -b=#00FF00
✔ success
$ genicon icon.png -p=android
✔ success
$ genicon icon.png -p=android -p=ios -p=pwa
✔ success
$ genicon icon.svg -p=ios -o=resources
✔ success
Platforms
A list of the available platforms and their generated icons can be found here.
Related
- genicon - API for this module
License
MIT © Andre Fortin