1.0.6 • Published 3 years ago

genicon-cli v1.0.6

Weekly downloads
14
License
MIT
Repository
github
Last release
3 years ago

genicon-cli Build Status

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

License

MIT © Andre Fortin