LinuxCommandLibrary

img2sixel

converts images to Sixel format for terminal display

TLDR

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

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.

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard