12 releases (2 stable)

Uses old Rust 2015

1.1.0 Mar 18, 2020
0.5.1 Feb 28, 2020
0.5.0 Oct 10, 2019
0.4.0 Jul 5, 2019
0.3.0 Sep 17, 2016

#427 in Command line utilities

Download history 16/week @ 2021-01-15 6/week @ 2021-01-22 12/week @ 2021-01-29 17/week @ 2021-02-05 47/week @ 2021-02-12 23/week @ 2021-02-19 9/week @ 2021-02-26 4/week @ 2021-03-05 5/week @ 2021-03-12 40/week @ 2021-03-19 31/week @ 2021-03-26 35/week @ 2021-04-02 25/week @ 2021-04-09 116/week @ 2021-04-16 77/week @ 2021-04-23 23/week @ 2021-04-30

56 downloads per month

MIT license

145KB
390 lines

termimage TravisCI build status AppVeyorCI build status Licence Crates.io version

Display images in your terminal, kind of

Documentation

Manpage

Installation

From Crates.io

Start by obtaining Rust from https://rustup.rs. Afterwards, run

cargo install termimage

After the installation process finishes, running termimage should produce an error message. If it does, you're ready to move on to the Usage sexion below.

If, however, you've encountered a problem during the installation, do not hesitate to open an issue here.

From Debian repository

The following line in /etc/apt/sources.list:

deb https://debian.nabijaczleweli.xyz stable main

With my PGP key (the two URLs are interchangeable):

wget -O- https://debian.nabijaczleweli.xyz/nabijaczleweli.gpg.key | sudo apt-key add
# or
sudo wget -O/etc/apt/trusted.gpg.d/nabijaczleweli.asc https://keybase.io/nabijaczleweli/pgp_keys.asc

Then the usual

sudo apt update
sudo apt install termimage

will work on x86_64 and i686.

See the repository README for more information.

From pre-built executables

Alternatively, have a glance over at the releases page, which should host Windows and Linux x86_64 binaries.

Installation should be a matter of downloading them, marking as executable, and copying somewhere to your $PATH.

Usage

Display an image

termimage IMAGE_PATH

Print all images in a dir to a file.

(for f in $(find image_dir -type f); do termimage -s 150x33 $f; done) > out_file

For more usage examples see the documentation.

Examples

Windows: DS3 image after

Linux with truecolor support: DS3 image after Rust logo image after playing dice image after

Special thanks

To all who support further development on Patreon, in particular:

  • ThePhD

Dependencies

~6MB
~97K SLoC