Description
viu is a small command-line application for viewing images in the terminal, written in Rust. It is the front end of the viuer library. It uses the iTerm or Kitty graphics protocol when your terminal supports one, and otherwise it shows lower half blocks, which work in most terminals. The choice depends on the TERM environment variable, and for half blocks viu checks COLORTERM, using truecolor with 16 million colors when it is set to truecolor or 24bit and falling back to ansi256 otherwise. viu also plays animated GIFs, accepts media through stdin, and lets you set custom dimensions. With no size flags it reads the terminal size and fits the image while keeping its aspect ratio, and it changes the aspect ratio only when both width and height are given. Transparency is supported, and experimental Sixel support is available behind a feature flag. A single GIF loops until you press Ctrl-C, while several files play each GIF once. iTerm handles GIFs itself, so the --once and --frame-rate options have no effect there. viu can be installed from source with a Rust toolchain, from a precompiled binary on the releases page, from Homebrew on macOS, from the Arch Linux extra repository, or from NetBSD's graphics category. The project is on GitHub under atanunq/viu.…
Highlights
- View images with the iTerm or Kitty graphics protocols
- Half-block fallback with truecolor or ansi256
- Animated GIF playback
- Reads images from stdin, with custom sizes
- Experimental Sixel support
Ratings & Reviews
No ratings yet
Be the first to rate Viu.
People also visit
Viu FAQ
What is viu?
A command-line image viewer for the terminal, written in Rust and built on the viuer library.
Is it free?
Yes. It is open source and hosted on GitHub.
How do I install it?
Build from source with a Rust environment, download a binary from the release page, or install from Homebrew on macOS, the Arch Linux extra repository or NetBSD.
Which terminals show real images?
Terminals that support the iTerm or Kitty graphics protocols. Other terminals get lower half blocks.
Does it work inside tmux?
The README says the Kitty protocol and tmux do not get along, so use half blocks there.
Does it play GIFs?
Yes. A single GIF loops until you press Ctrl-C, and several files each play their GIFs once.
How do I keep the aspect ratio?
Use no size flags to fit the terminal. Set both -w and -h only when you want to change the aspect ratio.
What are the best Viu alternatives?
Popular alternatives to Viu include Mcat, Kitty and Fancy Cat. See all Viu alternatives

