https://github.com/rm-hull/image-preview
CLI takes in an image file, and using ANSI escape sequences, outputs a low-fidelity preview of the image in the terminal.
https://github.com/rm-hull/image-preview
Last synced: over 1 year ago
JSON representation
CLI takes in an image file, and using ANSI escape sequences, outputs a low-fidelity preview of the image in the terminal.
- Host: GitHub
- URL: https://github.com/rm-hull/image-preview
- Owner: rm-hull
- License: mit
- Created: 2021-01-03T19:18:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-04T22:23:01.000Z (over 5 years ago)
- Last Synced: 2024-10-03T12:17:57.824Z (almost 2 years ago)
- Language: Rust
- Size: 2.38 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Image Preview
A first foray into **rust-lang**. Once built, this program takes in an image file, and
using ANSI escape sequences, outputs a low-fidelity preview of the image in the terminal.
Inspired in part by the **asciiblock** emulator [here](https://github.com/rm-hull/luma.emulator).

```console
$ target/release/image-preview -h
image-preview 0.1.0
USAGE:
image-preview [FLAGS] [OPTIONS]
FLAGS:
-h, --help Prints help information
--true-color When supplied, renders the image in true colour (not supported on all terminals). The default is
to use the nearest colour from the 255 indexed colours of the standard ANSI palette.
-V, --version Prints version information
OPTIONS:
--filter-type Resize filter used when scaling for the terminal (allowed values: nearest,
triangle, catmullrom, gaussian, lanczos3) [default: lanczos3]
-w, --width When supplied, limits the image with to the number of columns, else probes the
terminal to determine the displayable width.
ARGS:
```