Terminal and output
If the image doesn't appear
Try a single local image in a SIXEL-capable terminal. If the terminal displays escape characters or leaves the picture blank, check whether your emulator supports SIXEL and whether graphics are enabled. si --help can confirm that the executable runs, even in a text-only terminal.
If si reports a media error, check the filename and try a known image. A file containing only audio has no video frame to display.
Adjust the image size
si uses the terminal's pixel dimensions when available and leaves space for the shell prompt. If it has only row and column counts, it estimates each character cell at 8 × 16 pixels. To change that estimate for a run in a POSIX shell:
SI_CELL_SIZE=10x20 si photo.jpgUse whole pixel values in WIDTHxHEIGHT form. If the terminal already reports its pixel size, changing the estimate will have no visible effect.
Save a SIXEL stream
In a POSIX shell, redirect standard output to a file.
si photo.jpg > photo.six
cat photo.sixThe first command saves the SIXEL stream with its caption. The second sends it to the current terminal for display. The startup banner and errors go to standard error.
A redirected still keeps its native display size. For video, si writes every frame without playback delays. A redirected batch uses rows in an estimated 80-column grid and includes the full caption paths.
Exit status
| Status | Meaning |
|---|---|
| 0 | The command completed. |
| 1 | A media or output error occurred. Read the message on standard error. |
| 2 | The command line was invalid. Run si --help to check the syntax. |
| 130 | Playback was interrupted. |