BSD Ports

deskutils/terminal-image-viewer 1.2.1 FreeBSD

Display images in terminals using RGB ANSI codes & unicode characters

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
APACHE20
Categories
deskutils
Package size
94.5 KiB, 283.3 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

SystemPortVersion
FreeBSDdeskutils/terminal-image-viewer1.2.1
DragonFlydeskutils/terminal-image-viewer1.2.1
HardenedBSDdeskutils/terminal-image-viewer1.2.1
GhostBSDdeskutils/terminal-image-viewer1.2.1

Install

Binary package:

pkg install terminal-image-viewer

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	terminal-image-viewer>0:deskutils/terminal-image-viewer

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.2.11.2.1-1.2.11.2.1
FreeBSD:14:quarterly1.2.11.2.1n/a1.2.11.2.1
FreeBSD:15:latest1.2.11.2.1n/a1.2.11.2.1
FreeBSD:15:quarterly1.2.11.2.1n/an/an/a
FreeBSD:16:latest1.2.11.2.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 3
Run dependencies 49

No port depends on this one.

Configuration

No options to configure.

USES
compiler:c++17-lang gmake
Service scripts
none

Files

distinfo 1
FileSizeSHA256
stefanhaustein-TerminalImageViewer-v1.2.1_GH0.tar.gz53763508d0c30e3ffa47b69d1bce07bea56f04b7deb4a8a79307ce435a4f0852fbcd5f

Commit history 0

No commits in the history this site was built from.