14 releases (4 stable)

Uses old Rust 2015

1.2.1 Jul 15, 2023
1.2.0 Feb 9, 2022
1.1.0 Mar 18, 2020
0.5.1 Feb 28, 2020
0.3.0 Sep 17, 2016

#1786 in Command line utilities

Download history 16/week @ 2024-08-12 9/week @ 2024-08-19 13/week @ 2024-08-26 25/week @ 2024-09-02 25/week @ 2024-09-09 22/week @ 2024-09-16 31/week @ 2024-09-23 79/week @ 2024-09-30 10/week @ 2024-10-07 3/week @ 2024-10-14 9/week @ 2024-10-21 5/week @ 2024-10-28 51/week @ 2024-11-04 120/week @ 2024-11-11 15/week @ 2024-11-18 92/week @ 2024-11-25

278 downloads per month
Used in 2 crates

MIT license

180KB
388 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://nabijaczleweli.xyz/pgp.txt

Then the usual

sudo apt update
sudo apt install termimage

will work on x86_64, i686, and x32.

See the repository README for more information.

From AUR

There are three AUR packages, maintained by ohrun:

  • termimage, which builds the latest released version,
  • termimage-git, which builds the latest git revision, and
  • termimage-bin, which downloads the latest official build artifacts.

If you use an AUR helper, you should be able to

yay -S termimage

Otherwise, you should be able to clone an individual package repository and compile it with makepkg by running

git clone https://aur.archlinux.org/termimage.git && cd termimage && makepkg -si

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
  • Embark Studios
  • Lars Strojny
  • EvModder

Dependencies

~6.5MB
~86K SLoC