Converts images to Amiga OCS/ECS 12-bit color with palette reduction and dithering.
npm install amiga-convertConverts images to Amiga OCS/ECS 12-bit color with palette reduction and dithering.
```
npm install -g amiga-convert
or just run with npx:
``
npx amiga-convert
`
Usage: amiga-convert
Options:
--colors
--quant
- rgbquant: Spatial color quantization (fast, best all-round)
- wuquant: Xiaolin Wu's algorithm (very fast, good quality)
- neuquant: Neural network (slow, poor for small palettes)
- median-cut: Classic median cut (fast, decent quality)
--dither
- none: No dithering, nearest color
- floyd-steinberg: Error diffusion (best for photos)
- atkinson: Error diffusion with lighter touch
- ordered: Bayer matrix dithering (retro look)
--dither-amount
Lower values = less dithering, higher = more
--bayer-size
Default: 8
Examples:
amiga-convert photo.jpg output.png --colors 32
amiga-convert photo.jpg output.png --colors 64 --quant wuquant
amiga-convert photo.jpg output.png --colors 128 --dither atkinson --dither-amount 0.75
amiga-convert sprite.png output.png --colors 16 --dither ordered --bayer-size 4
amiga-convert image.jpg output.png --colors 256 --quant median-cut --dither none
``