A cli tool for preview images with ascii characters. Support colors, adjustable resolution, antialiasing and alpha channel.
You can use the tool on linux and windows, see the release page.
But if you use it on windows and don't work well, install C++ tools for windows.
Format | Decoding |
---|---|
BMP | Yes |
Farbfeld | Yes |
GIF | Yes |
ICO | Yes |
JPEG | Baseline and progressive |
OpenEXR | Rgb32F, Rgba32F (no dwa compression) |
PNG | All supported color types |
QOI | Yes |
TGA | Yes |
TIFF | Baseline(no fax support) + LZW + PackBits |
WebP | Yes |
The tool is completely written in Rust and I use the image library to decode the image formats.
$ cli-image --help
A cli tool for preview images with ascii characters
Usage: cli-image [OPTIONS] <FILE>
Arguments:
<FILE> The file for preview
Options:
-m, --max-size <MAX_SIZE> The max size of the preview in the screen (nº of ascii pixels) [default: 100]
-c, --color Preview image with color (default = false) Note: this feature is only to true color terminals
-o, --omit-ascii-distortion Omits the ascii distortion filter (default = false)
-n, --not-antialiasing Omits the antialiasing filter (default = false)
-h, --help Print help
-V, --version Print version
cli-image Copyright (c) 2023 Guillex387. All rights reserved.
Licensed under the Apache-2.0 license.