Find a file
2026-01-23 20:58:11 +01:00
src added forgejo integration 2025-03-21 16:08:22 +01:00
.babelrc initial commit 2024-10-14 01:15:04 +02:00
.gitignore initial commit 2024-10-14 01:15:04 +02:00
LICENSE Added appropriate license for the code quality 2026-01-23 20:58:11 +01:00
package-lock.json added forgejo integration 2025-03-21 16:08:22 +01:00
package.json added forgejo integration 2025-03-21 16:08:22 +01:00
README.md Added disclaimer 2026-01-23 20:56:04 +01:00

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 256x256 icon size. if you choose a different size using the --export-size option 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.