| src | ||
| .babelrc | ||
| .gitignore | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
Agin Icon
Agin Icon Generator
Warning
Please, don't use it. The performance is garbage. A rewrite in Rust will be avaliable soon.
As it turns out, you don't need React to scale down SVGs and rasterize them! (NO WAY)
Installation
npm i
npm run build
sudo chmod +x dist/index.js
sudo npm i -g
Usage
agicon gen - generates icon
note: all the sizes are relative to the
256x256icon size. if you choose a different size using the--export-sizeoption the icon will be scaled to that size
Options:
-t, --theme [theme] - provide the theme. Allowed values: red, green, blue, orange, violet
-i, --icon [ixon] - provide the icon name from Tabler Icons (lowercase, separated with dashes)
-s, --size [size] - provide the icon size (default: 140px)
-o, --output [path] - provide the output path
-w, --stroke [width] - provide the icon stroke width (default: 2.5)
-r, --radius [radius] - border radius (default: 0)
-e, --export-size [size] - final file size, you can pass an array for generating multiple sizes at once (for example to generate icons with sizes 32px and 64px pass 32,64) (default: 256)
If you won't provide the required options, you'll be asked to input them interactively.