view-img

Crates.ioview-img
lib.rsview-img
version1.0.0
created_at2025-05-23 19:22:34.08334+00
updated_at2025-05-23 19:22:34.08334+00
descriptionSimple image viewing CLI
homepage
repositoryhttps://github.com/justdeeevin/view-img
max_upload_size
id1686632
size60,835
Devin Droddy (justDeeevin)

documentation

README

view-img

Simple image viewing CLI.

img-view leverages terminal graphics protocols to display images in the terminal.

Usage

Simply provide the path to the image you want to display as a positional argument. Depending on the quality of the image, it may take many seconds to load and render. You'll see a throbber to indicate that it's processing. At any time, you can press any key to exit the app.

The option --[r]esize can be used to specify how the image should be resized. crop will crop the image if the terminal is too small to display it in full, and make no change to the image's size. fit will shrink the image if the terminal is too small. scale will do the same, but will also grow the image to fill the terminal if the terminal is larger than the image. All three resizing modes will maintain the image's original aspect ratio. The default mode is fit.

Commit count: 3

cargo fmt