BSD Ports

deskutils/terminal-image-viewer 1.2.1 DragonFly

Display images in terminals using RGB ANSI codes & unicode characters

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
deskutils
Package size
92.5 KiB, 277.8 KiB installed

Description

Small C++ program to display images in a (modern) terminal using RGB ANSI codes and unicode block graphic characters.

There are various similar tools (such as timg) using the unicode half block character to display two 24bit pixels per character cell. This program enhances the resolution by mapping 4x8 pixel cells to different unicode characters, using the following algorithm:

For each 4x8 pixel cell of the (potentially downscaled) image: * Find the color channel (R, G or B) that has the biggest range of values for the current cell. * Split this range in the middle and create a corresponding bitmap for the cell. * Compare the bitmap to the assumed bitmaps for various unicode block graphics characters. * Re-calculate the foreground and background colors for the chosen character.

In the other systems

The newest version among them is 1.2.1, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydeskutils/terminal-image-viewer1.2.1 newestnone known-[email protected]-
FreeBSDdeskutils/terminal-image-viewer1.2.1 newestnone known-[email protected]-
HardenedBSDdeskutils/terminal-image-viewer1.2.1 newestno data-[email protected]-
GhostBSDdeskutils/terminal-image-viewer1.2.1 newestno data-[email protected]-

Install

Binary package:

pkg install terminal-image-viewer

From DPorts:

cd /usr/dports/deskutils/terminal-image-viewer && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 2

No port depends on this one.