@ponti-studios/iconkit
v1.0.0
Published
Image asset toolkit — resize, optimize, crop, convert, strip metadata, and generate web icons from the command line
Maintainers
Readme
iconkit
Image asset toolkit — resize, optimize, and generate web icons from the command line.
A TypeScript rewrite of the original bash script, compiled to a standalone binary with Bun.
Install
Pre-built binary (recommended)
curl -fsSL https://raw.githubusercontent.com/ponti-studios/toolbox/main/apps/iconkit/install.sh | bashFrom source
git clone https://github.com/ponti-studios/toolbox.git
cd toolbox/apps/iconkit
bun install
bun run build
./iconkit installDepends on sips (macOS), optionally cwebp (brew install webp) and avifenc (brew install libavif).
Commands
iconkit optimize — Resize & convert for the web
iconkit optimize -s 500x500 logo.*.png
iconkit optimize -s 1200x630 -q 80 -f both -o ./web ~/assets/*.pngOptions:
| Option | Description | Default |
|--------|-------------|---------|
| -s, --size <WxH> | Target dimensions | 500x500 |
| -q, --quality <N> | WebP/AVIF quality | 85 |
| -o, --output-dir <DIR> | Output directory | same dir as input |
| -k, --keep-png | Keep resized PNG | false |
| -f, --format <fmt> | webp, avif, both, png | webp |
| -d, --dry-run | Preview without writing | false |
iconkit web — Generate favicon, app icons & social cards
iconkit web logo.png
iconkit web logo.png -o ./static/iconsGenerates favicon (16–96 + .ico), Apple touch (57–180), Android (36–192), PWA (192–512), MS Tile (70–310), OG image & Twitter card (1200×630).
Requires magick (brew install imagemagick).
iconkit info — Show image dimensions & sizes
iconkit info *.pngiconkit install — Symlink into PATH
Auto-detects ~/.local/bin, /usr/local/bin, or ~/bin.
