A dependency-free terminal-based image viewer, built with pure ANSI escape sequences (no ncurses). Capable of displaying images in the terminal using truecolor (16 million color) support, or 256-color support as a fallback. Also includes a SNES Mode 7-inspired viewing mode.
View mode:
Affine mode:
(Runs extremely smoothly in alacritty, GIF reduced to 10fps for filesize).
affine
does not depend on anything other than the C standard library and stb_image, meaning it can be compiled with:
$ make
And run with:
$ ./affine [image file] [mode]
Where mode
is one of:
view
: View the image natively, with arrow keys to move and +/- to zoom -- if no mode is specified, this one is usedaffine
: View the image using a Mode 7 perspective transform, with arrow keys or WASD to navigate, E/C to adjust tilt, R/V to adjust height, and Q to quit
- Animated GIF support
- Rendering optimizations (high CPU usage from nonblocking input loop)
- Simply math in affine mode