piv
Fast ANSI terminal image viewer.
- Supports PNG, GIF, and JPEG formats.
- Only uses the 8 standard ANSI colors.
- No 24-bit colors or Unicode tricks.
Installation
go get github.com/hoffa/piv
Usage
Usage of piv:
-r float
character width-to-height ratio (default 0.5)
-w int
output image width (native width if 0) (default 80)
Image data is read from standard input.
Example
curl https://placekitten.com/600/600 | piv
Setting -w
to 0
will display the image in its native resolution:
curl https://placekitten.com/600/600 | piv -w 0 | less -RS