What is viu?
viu is a small but powerful command-line image viewer written in Rust that displays images directly in your terminal. It adapts to your terminal's capabilities, using the best available protocol โ from the high-fidelity Kitty and iTerm2 graphics protocols down to Unicode block characters as a universal fallback.
โก Key Features of viu
๐ผ๏ธ Multiple Display Protocols
Supports Kitty terminal graphics protocol, iTerm2 inline images, Sixel graphics, and Unicode block characters โ automatically picks the best one for your terminal.
๐ฆ Wide Format Support
Displays PNG, JPEG, GIF, BMP, ICO, TIFF, WebP, AVIF, and many more formats via Rust's image crate.
๐๏ธ GIF Animation
Plays animated GIFs directly in the terminal, looping through frames at the correct frame rate.
๐ Flexible Sizing
Control width, height, or let viu auto-fit the image to your terminal window. Useful for pipelines and scripting.
๐ Pipe-Friendly
Reads from stdin or file arguments, making it composable with tools like curl, find, and shell pipelines.
โก Fast & Lightweight
Written in Rust โ minimal startup time, low memory footprint, and no runtime dependencies beyond the binary.
๐ฅ๏ธ Supported Terminal Protocols
- Kitty: Full-resolution pixel-perfect images (kitty, Ghostty, WezTerm)
- iTerm2: Inline image protocol (iTerm2, WezTerm, Tabby, VSCode)
- Sixel: Compatible with foot, Windows Terminal, and many classic terminals
- Unicode blocks: Universal fallback โ works in every terminal
๐ฆ Installation from deb.griffo.io
Step 1: Add Repository
Step 2: Install viu
๐ฏ Usage Examples
Basic usage:
Sizing options:
Pipeline examples:
๐ Why Choose deb.griffo.io?
- Official Debian: viu is not packaged in official Debian repositories
- Cargo Install: Requires Rust toolchain and compilation time
- deb.griffo.io: Latest version available immediately via
apt
- โ Latest Features: Get newest viu features including AVIF and improved protocol support
- โ No Rust Compilation: Pre-built musl static binary, no toolchain or extra dependencies needed
- โ Automatic Updates: Packages updated within hours of upstream releases
- โ Proper Packaging: Correctly packaged as a Debian package with clean install/remove
- โ Multi-Distribution: Works on Bookworm, Trixie, Forky, and Sid
๐ฆ Package Build Repository
The Debian packages are automatically built and maintained in this GitHub repository:
- ๐ผ๏ธ viu-debian - Latest release builds
๐ Related Packages
Also available from deb.griffo.io:
- Yazi File Manager - Terminal file manager with built-in image preview
- eza - Modern ls replacement
- fzf Fuzzy Finder - Combine with viu for interactive image browsing
๐ Support This Project
If this repository saves you time and effort, please consider supporting it!