An open API service indexing awesome lists of open source software.

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.

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).

![screenshot](https://raw.githubusercontent.com/rm-hull/image-preview/master/screenshot.png)

```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:

```