LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.

INSTALL

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

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid