timg is a lightweight terminal image and video viewer that brings visual content directly to your shell environment. Whether you're working remotely over SSH or simply want to preview images without launching a separate application, timg delivers a practical solution.
The tool automatically detects your terminal's capabilities and uses the best available rendering method. On modern terminals supporting Sixel, Kitty Graphics Protocol, or iTerm2 Graphics Protocol, images display in full resolution. For terminals without these advanced features, timg falls back to 24-bit color with Unicode character blocks (half-blocks or quarter-blocks), which remain surprisingly effective for quick visual checks.
Key capabilities include:
cat or lessThe command-line interface is straightforward, accepting multiple image and video filenames with options for grid layout, wait times between images, and output geometry. Since output is emitted inline with minimal terminal disruption, you can scroll back through your history to review previously displayed images. Perfect for system administrators, developers, and anyone who spends significant time in the terminal.
$ apt install timg$ apt install cmake$ apt install libgraphicsmagick++-dev$ apt install libsixel-dev$ apt install libavcodec-dev$ apt install libavdevice-dev$ apt install libopenslide-dev$ apt install libpoppler-glib-dev$ apt install pandoc