icy_sixel-cli-0.5.0 is not a library.
icy_sixel-cli
A command-line tool for encoding, decoding, and animating SIXEL graphics.
SIXEL is a bitmap graphics format supported by many terminal emulators including xterm, mlterm, foot, WezTerm, and others.
Installation
Or build from source:
Commands
Encode
Convert images (PNG, JPEG, GIF, WebP) to SIXEL format:
# Display image in terminal
# Save to file
# Read from stdin
|
# Custom settings
Decode
Convert SIXEL files back to PNG:
# Decode to PNG (auto-generates output filename)
# Specify output file
# Read from stdin
|
Animate
Play or convert animated GIFs:
# Play animation in terminal (Ctrl+C to stop)
# Adjust playback speed (2x faster)
# Limit loop count
# Extract a single frame
# Save all frames to file
Options
Global Options
| Option | Description |
|---|---|
-q, --quiet |
Suppress informational messages (errors still shown) |
-h, --help |
Print help information |
-V, --version |
Print version |
Encode Options
| Option | Default | Description |
|---|---|---|
-o, --output <FILE> |
stdout | Output file |
-c, --colors <N> |
256 | Maximum colors (2-256) |
-d, --diffusion <F> |
0.875 | Floyd-Steinberg dithering strength (0.0-1.0) |
-m, --method <METHOD> |
wu | Color quantization: wu or kmeans |
-a, --aspect-ratio <RATIO> |
square | Pixel aspect ratio (see below) |
-b, --background <MODE> |
transparent | Background mode: transparent or opaque |
Animate Options
All encode options plus:
| Option | Default | Description |
|---|---|---|
-s, --speed <F> |
1.0 | Speed multiplier |
-l, --loops <N> |
0 | Loop count (0=GIF default, -1=infinite) |
-f, --frame <N> |
- | Extract single frame (0-indexed) |
Pixel Aspect Ratios
| Value | Ratio | Description |
|---|---|---|
square |
1:1 | Modern terminals (default) |
ratio2to1 |
2:1 | VT240/VT340 native |
ratio3to1 |
3:1 | Tall pixels |
ratio5to1 |
5:1 | Very tall pixels |
Examples
# High-quality encode with maximum colors
# Fast preview with fewer colors
# K-means quantization (slower but may be more accurate)
# Opaque background (fills undrawn pixels)
# Silent operation for scripts
# Slow-motion GIF playback
# Convert GIF to static SIXEL (first frame)
Supported Formats
Input (encode/animate):
- PNG
- JPEG
- GIF (static and animated)
- WebP
Output (decode):
- PNG
Terminal Compatibility
SIXEL is supported by:
- xterm (with
+sixelbuild option) - mlterm
- foot
- WezTerm
- Contour
- ctx
- And many more
Test if your terminal supports SIXEL:
You should see a small red dot if SIXEL is supported.
Related
- icy_sixel - The underlying Rust library
- libsixel - The original C implementation
- All About SIXELs - SIXEL specification
License
Licensed under the Apache License, Version 2.0 — see LICENSE for details.