Chafa is a free and open source command-line image to text converter software for Linux and MacOS. It is released under LGPL-3.0 License. Using chafa you can convert any images and including animated GIFs. It also support Unicode symbols for the better output. It also supports full width character like Japanese and Korean, color modes like Truecolor, 256-color, 16-color and simple FG/BG, RGB and DIN99d color spaces, alpha transparency support, SIMD optimized and multithreaded.
You can load Glyphs from any font file supported by Freetype like TTF, OTF, PCF, etc. It currently supports modern and classic terminals and terminal emulators. For the chafa installation please follow the below steps.
Install Chafa on Ubuntu
Chafa is available as a snap and official PPA. You can install chafa using the terminal application.
Install Chafa via PPA:
Open the terminal (ctrl+alt+t) and run below commands to add chafa PPA and install Chafa.
sudo add-apt-repository ppa:hpjansson/chafa
sudo apt update
sudo apt install chafa
You can use below syntax.
chafa [OPTION...] [IMAGE...]
For the complete man pages run this command.
If you have an image in your Downloads folder and that image name is logo.png then run below commands.
Install Chafa via Snap
You can also install it via the snap package. For that in terminal run this chafa snap installation command.
sudo snap install chafa --edge