img2sixel

converts images to Sixel format for terminal display

TLDR

Display image in terminal
$ img2sixel [image.png]
Set width
$ img2sixel -w [800] [image.png]
Set height
$ img2sixel -h [600] [image.png]
Specify colors
$ img2sixel -p [256] [image.png]
Pipe output
$ curl [url/image.png] | img2sixel

SYNOPSIS

img2sixel [options] [file]

DESCRIPTION

img2sixel converts images to Sixel format for terminal display. Sixel enables inline graphics in compatible terminals.The tool supports various image formats and outputs Sixel escape sequences. It works with terminals like xterm, mlterm, and others.

PARAMETERS

FILE

Image file to display.
-w WIDTH
Output width in pixels.
-h HEIGHT
Output height in pixels.
-p COLORS
Number of colors.
-d DIFFUSION
Dithering method.
-e
Encode only (no display).
--help
Display help information.

INSTALL

sudo apt install libsixel-bin
sudo apk add libsixel-tools

CAVEATS

Requires Sixel-capable terminal. Part of libsixel. Quality depends on colors.

HISTORY

img2sixel is part of libsixel by Hayaki Saito for terminal graphics.

SEE ALSO

viu(1), chafa(1), timg(1)