ss-format-convertlisted
Install: claude install-skill rajnandan1/such-skills
# Format Convert — Lossless Image Format Converter
Convert any image between PNG, JPG, WebP, TIFF, BMP, GIF, HEIC, and AVIF using ImageMagick. Lossless by default — preserves maximum quality and original dimensions.
## Prerequisites
ImageMagick is required. For HEIC/AVIF support, ensure delegates are installed.
```bash
brew install imagemagick # macOS
sudo apt install imagemagick # Debian/Ubuntu
```
## How to use
Run the bundled script:
```bash
bash "${CLAUDE_SKILL_DIR}/scripts/convert.sh" <input-image> --to FORMAT [OPTIONS]
```
### Options
| Flag | Description | Default |
|------|-------------|---------|
| `--to FORMAT` | Target format (png, jpg, webp, tiff, bmp, gif, heic, avif) | (required) |
| `--output DIR` | Output directory | `./converted/` |
| `--quality N` | Quality for lossy formats 1-100 | `100` |
| `--bg-color HEX` | Background color when removing alpha (6-digit hex, no #) | `FFFFFF` |
| `--batch DIR` | Convert all supported images in a directory | — |
| `--recursive` | Include subdirectories in batch mode | off |
| `--formats` | List supported formats and exit | — |
### Supported formats
For the full reference with alpha support, lossy/lossless details, and conversion notes, read `references/formats.md`.
| Format | Alpha | Quality |
|--------|-------|---------|
| PNG | yes | lossless |
| JPG | no | lossy |
| WebP | yes | both |
| TIFF | yes | lossless |
| BMP | no | lossless |
| GIF | yes (1-bit) | lossless |
| HEIC | yes | lossy |
| AVIF | yes | b