GNU/Linux ◆ xterm-256color ◆ bash 494 views

I wrote a tiny tool to display images (including animated GIFs) in the terminal. Couldn’t record it for longer because it generates too big of a recording file.

This uses the Unicode block elements █, ▄, and ▀ plus 24-bit color ANSI escape sequences to set foreground and background colors in order to render two pixels for each character. Not every terminal supports these escape sequences, and some that do downsample the color quite heavily. Also some terminals don’t render the characters perfectly and sometimes leave small gaps.

More info and download the tool from my GitHub: https://github.com/panzi/ansi-img