gif2zxs

1.0.3 • Public • Published

gif2zxs

convert GIF animations into ZX-Spectrum screens

Install this globally and you'll have access to the gif2zxs command line interface anywhere on your system:

npm install -g gif2zxs

Usage:

  • $ gif2scr [options] <input.gif...>

Options:

  • -d, --dir --- output directory
  • -c, --attr --- ZX-Spectrum color attribute value (0..127, default 56)
  • -t, --threshold --- threshold integer value (0..255, default 128)
  • -r, --resizer --- image resample method:
  • "none" --- Nearest-neighbor (default)
  • "bilinear" --- Bilinear interpolation
  • "bicubic" --- Bicubic interpolation
  • "hermite" --- Hermite curve interpolation
  • "bezier" --- Bezier curve interpolation
  • -z, --dither --- dither method:
  • "none" --- Simple threshold, no dither (default)
  • "bayer4" --- Bayer 4x4 matrix ordered dither
  • "bayer8" --- Bayer 8x8 matrix ordered dither
  • "floydsteinberg" --- Floyd-Steinberg error diffusion
  • "atkinson" --- Atkinson error diffusion
  • -a, --ani --- output animation binary file of type:
  • "xor" --- ZX-Spectrum screen mode, XOR method (default)
  • "direct" --- ZX-Spectrum screen mode, direct write method
  • "linear-xor" --- linear screen mode, XOR method
  • "linear-direct" --- linear screen mode, direct write method
  • -s, --skip --- Skip number of frames between each ani-frame (default 0)

  • --lossy --- Lossy conversion post-processing

  • --holes --- Hole tolerance while storing ani-chunk (1..7, default 2)

  • --scanline --- Process nth scanline into animation (1..2, default 1)

  • -h, --help --- Show help

  • -v, --version --- Version number

Package Sidebar

Install

npm i gif2zxs

Weekly Downloads

7

Version

1.0.3

License

MIT

Last publish

Collaborators

  • mborik