Chafa

System UtilitiesLGPL-3.0

Renders images as terminal graphics.

Latest 1.18.3 · by Hans Petter JanssonWritten in CWebsitehpjansson/chafaRSS

Release activity

Release activity — 3 releases across 3 days in the last year. Each cell is one day; darker means more releases that day. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026No releases on Nov 8, 2026No releases on Nov 15, 2026
MondayNo releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 2026No releases on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026No releases on Nov 9, 2026
TuesdayNo releases on Aug 4, 2026No releases on Aug 11, 2026No releases on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026No releases on Nov 10, 2026
WednesdayNo releases on Aug 5, 2026No releases on Aug 12, 2026No releases on Aug 19, 2026No releases on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026No releases on Sep 16, 20261 release on Sep 23, 2026No releases on Sep 30, 2026No releases on Oct 7, 2026No releases on Oct 14, 2026No releases on Oct 21, 2026No releases on Oct 28, 2026No releases on Nov 4, 2026No releases on Nov 11, 2026
ThursdayNo releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026No releases on Nov 12, 2026
FridayNo releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 2026No releases on Nov 6, 2026No releases on Nov 13, 2026
SaturdayNo releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026No releases on Nov 7, 2026No releases on Nov 14, 2026

3 releases in the last year

Changelog

1.18.3Latest

Chafa 1.18.3

Changed 1
  • libheif 1.12.0 or later is now formally required for HEIF support
Fixed 11
  • Sixels are no longer used inside tmux when the outer terminal cannot display them, and tmux's client capabilities are queried instead
  • Padding and fully transparent areas revealed by alpha thresholding are now painted in the flat background color instead of the closest match
  • Alignment-induced crash on AMD/CachyOS
  • CLI hang when --files was used and standard input was a pipe
  • CLI potential busy-wait for a complete token from a file list
  • CLI TIFF images decoded with wrong channel order on big-endian systems

From Chafa

This is a bugfix release.

  • libheif 1.12.0 or later is now formally required for HEIF support. We were already calling functions introduced in 1.9.0 and 1.12.0.

  • Sixels are no longer used inside tmux when the outer terminal can't display them. tmux claims the capability on its own behalf regardless of what's outside it, so we now ask what its client supports instead (#348, reported by @guerda).

  • Padding and fully transparent areas revealed by alpha thresholding are now correctly painted in the flat background color instead of the closest match (#354, reported by @ismay-tue).

  • Bug fixes: #347 Alignment-induced crash on AMD/CachyOS (reported by @yeslamm and @quantumfate). [unfiled] CLI: Hang when --files was used and standard input was a pipe. [unfiled] CLI: Potential busy-wait for a complete token from a file list. [unfiled] CLI: TIFF images decoded with wrong channel order on big-endian. [unfiled] CLI: Integer overflow in image loader size arithmetic (@zouyonghe). [unfiled] CLI: Unbounded allocation decoding GIF frames larger than the file's logical extent. [unfiled] OOB read one entry past the end of the palette color table. [unfiled] Double free of the pixel canvas after chafa_canvas_new_similar(). [unfiled] Spurious pen added to palettes with fewer than 255 colors.

View originalPermalink
How 1.18.3 went
1.18.2

Chafa 1.18.2

Added 1
  • Support BigTIFF images
Fixed 7
  • Integer overflow and out-of-bounds write with large output sizes
  • Out-of-bounds write in symbol-mode Floyd-Steinberg dithering
  • Incomplete sanitization of filenames printed to the terminal in the CLI
  • Integer overflow in XWD header validation in the CLI
  • Pointer arithmetic past the end of the GIF file allocation in the CLI
  • Out-of-bounds reads of canvas cell colors in FGBG mode
  • Compiler warnings from headers when compiling with C99 and -Wpedantic
View originalRead the notes
How 1.18.2 went
1.18.1

Chafa 1.18.1

Added 2
  • New option `--probe-mode=[any|ctty|stdio]` to specify whether to probe the terminal through stdio or ctty (usually /dev/tty), defaulting to any
  • Bash completions
Changed 3
  • Terminal restoration after SIGINT is attempted more thoroughly, even when a clean exit cannot be completed in a reasonable time frame
  • Zsh completions updated
  • Improved compatibility for the Kitty protocol, specifically with iTerm2
Fixed 4
  • Test failure on sparc64
  • Test failure on i386
  • Bad console modes on win32 after exit
  • Stalling on closed output pipe on OpenBSD
View originalRead the notes
How 1.18.1 went
1.18.0

Chafa 1.18.0

Added 7
  • Added the --files=FNAME option to read lists of input files from a file or standard input, with paths separated by newlines; it can be specified multiple times
  • Added the --files0=FNAME option to read lists of input files from a file or standard input, with paths separated by zero bytes; it can be specified multiple times
  • Added the --link=[auto|on|off] option, which when used with --label controls whether each label is an OSC 8-style hyperlink to its input file
  • Added support for CoreGraphics image loaders on MacOS
  • Added support for HEIF image files on all platforms
  • Added support for the GNU/Hurd console
  • Added a test for CLI tool return values in various scenarios
Changed 3
  • Increased the GLib minimum version to 2.58 (released in 2018)
  • Multiple files can now be decoded in parallel, greatly speeding up grid mode on multi-core systems, controllable with --threads
  • Expanded symbol matching tests with more cases and detailed diagnostics
Fixed 8
  • Improved detection of ghostty running inside tmux
  • Stdin is no longer left in non-blocking mode
  • Use glibtoolize when libtoolize is unavailable
  • GNU/Hurd no longer stalls if the pipe is closed on the remote end
  • _mm_empty() is now always called immediately after MMX use
  • Floating point division by zero is no longer possible in sixel palette generation
  • Probing no longer waits for a response when probing is unsupported
  • Wrong exit code is no longer returned on some failures
Removed 1
  • Removed ConHost support due to incompleteness and lack of interest
View originalRead the notes
How 1.18.0 went
1.16.2

Chafa 1.16.2

Fixed 7
  • SVG scaling is now applied before bitmap conversion instead of after, improving SVG rendering quality
  • Compilation error with MinGW due to an undeclared function error for strlen()
  • Assertion failure when using chafa_canvas_draw_all_pixels() with Kitty passthrough
  • Hang when running with closed stdin
  • Potential buffer overrun when the output dimension is exactly 1 pixel
  • Small memory leak on failed load in the grid layout
  • JPEG loader printing warnings that should not be shown
View originalRead the notes
How 1.16.2 went
1.16.1

Chafa 1.16.1

Fixed 2
  • Fish completion is now included in the release tarball
  • Piping and redirection now work correctly on Windows
View originalRead the notes
How 1.16.1 went
1.16.0

Chafa 1.16.0

Added 8
  • Terminal probing to determine geometry, colors and sixel capabilities, supplementing the existing heuristics
  • New option --grid=WxH, --grid=[auto|on|off] or -g to lay out multiple images in a grid for easy browsing
  • New option --label=[on|off] or -l to label each image with its filename, working in both continuous and grid layouts
  • New option --probe=[auto|on|off] to control whether the terminal is actively probed, accepting a real number for how long to wait for a response
  • Blue noise dithering for sixel output
  • Blue noise dithering available in symbols mode via --dither noise, which can be turned off with --dither none
  • Completions for the fish shell
  • Kitty image protocol enabled for Warp
Changed 6
  • The internal terminal database and heuristics were refactored for clarity, with new API added to simplify configuration
  • I/O is now threaded, resulting in improved responsiveness and pipelining
  • Sixel quality improved significantly by reimplementing the quantizer with modern algorithms
  • Images can now cover their cell extents completely in sixel output
  • The JPEG XL loader was improved with optional memory mapping and better container support
  • Zsh completions updated
Fixed 20
  • Terminal cursor placement quirks are now represented and handled in sixel output
  • Workaround for animations walking up the screen on quirky terminals
  • Wildcard expansion enabled in Windows builds
  • Automatic detection of background for perception of transparency
  • Sixel capability not detected in foot + tmux
  • Ghostty showing pwd/lock indicator when using Chafa
View originalRead the notes
How 1.16.0 went
1.14.5

Chafa 1.14.5

Fixed 4
  • Improved sixel and general terminal support inside tmux
  • Added support for JPEG images with CMYK color space
  • Fixed the --font-ratio option having no effect
  • Ensured the CLI tool is linked with libm
View originalRead the notes
How 1.14.5 went
1.14.4

Chafa 1.14.4

Fixed 2
  • Corrected the incomplete fix for CLI argument fraction parsing so that C locale formatting is accepted in addition to the current locale's formatting.
  • Dither intensity no longer fails to work properly.
View originalRead the notes
How 1.14.4 went
1.14.3

Chafa 1.14.3

Added 1
  • Support for the Ghostty terminal, defaulting to the Kitty graphics protocol there.
Fixed 7
  • Sixel transparency is re-enabled for still frames, while animations are pre-composited on an opaque background to prevent flicker.
  • Image preview on lf broken in Chafa version 1.14 (issue #185).
  • Crash when using the -f sixels option (issue #210).
  • Sixels rendered too small in Windows Terminal (issue #211).
  • Aspect-preserving calculations are incorrect in some cases (issue #212).
  • Inconsistent fraction parsing in CLI arguments.
  • Small memory leaks in the JPEG XL loader.
View originalRead the notes
How 1.14.3 went
View all

Discussion

If you publish Chafa, you can claim this product by proving you administer its repository.