Awesome Open Source
Awesome Open Source


Master Build Status   1.4 Build Status   Latest Release

About β€’ Gallery β€’ Packages β€’ Development

Chafa is a command-line utility that converts all kinds of images, including animated GIFs, into sixel or ANSI/Unicode character output that can be displayed in a terminal.

It is highly configurable, with support for alpha transparency and multiple color modes and color spaces, combining selectable ranges of Unicode characters to produce the desired output.

The core functionality is provided by a C library with a public, well-documented API.

It has official web pages and C API documentation online. Check out the gallery for screenshots.

Installing

Chafa is most likely packaged for your distribution, so if you're not going to hack on it, you're better off using official packages. If you want to build the latest and greatest yourself, read on.

You will need GCC, make, Autoconf, Automake, Libtool and the GLib development package installed to compile Chafa from its git repository. If you want to build the command-line tool chafa and not just the library, you will additionally need the ImageMagick development packages.

If you want to build documentation, you will also need gtk-doc.

Start by cloning the repository:

$ git clone https://github.com/hpjansson/chafa.git

Then cd to the toplevel directory and issue the following shell commands:

$ ./autogen.sh
$ make
$ sudo make install

That should do it!


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
c (13,381)Β 
cli (1,460)Β 
library (1,141)Β 
terminal (596)Β 
image-processing (431)Β 
graphics (355)Β 
images (145)Β 
terminal-based (44)Β 
ansi (42)Β 
image-viewer (40)Β 
graphics-library (28)Β 
ansi-colors (23)Β 

Find Open Source By Browsing 7,000 Topics Across 59 Categories