#terminal #image #ansi-term #tui #viewer

bin+lib timg

Interactive Image Viewer on Terminal (xterm)

7 stable releases

2.1.0 May 2, 2023
2.0.1 Apr 19, 2023
1.2.0 Feb 20, 2023

#2858 in Command line utilities

42 downloads per month

MIT license

759 lines

The image viewer on the terminal is based on the xterm standard. This is an interactive image viewer with very fast IO speed on the terminal, utilizing incremental output and other methods to significantly reduce IO data. It can perform well on low-speed terminals.


  • Zoom Picture
  • Rotate Picture
  • Mirror image
  • Inverted image
  • Grayscale image
  • Change interpolation algorithm
  • Change background color
  • Adjusting the output color difference threshold to improve output speed


example1 example2 example3


crate: https://crates.io/crates/timg

Due to the current implementation of the software reading one character at a time appearing to be unavailable on Windows systems, it may result in the software being unavailable or not meeting your expectations when running on Windows systems.


~188K SLoC