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
| System | Port | Version |
|---|---|---|
| FreeBSD | deskutils/terminal-image-viewer | 1.2.1 |
| DragonFly | deskutils/terminal-image-viewer | 1.2.1 |
| HardenedBSD | deskutils/terminal-image-viewer | 1.2.1 |
| GhostBSD | deskutils/terminal-image-viewer | 1.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.2.1 | 1.2.1 | - | 1.2.1 | 1.2.1 |
| FreeBSD:14:quarterly | 1.2.1 | 1.2.1 | n/a | 1.2.1 | 1.2.1 |
| FreeBSD:15:latest | 1.2.1 | 1.2.1 | n/a | 1.2.1 | 1.2.1 |
| FreeBSD:15:quarterly | 1.2.1 | 1.2.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.2.1 | 1.2.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Runtime 1
GraphicsMagick>0: graphics/GraphicsMagick
The full lists below include those, and their dependencies in turn.
Build dependencies 3
Run dependencies 49
- archivers/brotli
- archivers/libdeflate
- archivers/liblz4
- archivers/zstd
- converters/libiconv
- devel/binutils
- devel/boost-libs
- devel/boost-python-libs
- devel/gettext-runtime
- devel/glib20
- devel/highway
- devel/icu
- devel/libffi
- devel/libinotify
- devel/pcre2
- devel/py-packaging
- devel/readline
- graphics/GraphicsMagick
- graphics/gd
- graphics/gdk-pixbuf2
- graphics/giflib
- graphics/jasper
- graphics/jbigkit
- graphics/jpeg-turbo
- graphics/lcms2
- graphics/lerc
- graphics/libjxl
- graphics/libwmf
- graphics/openexr
- graphics/openjph
- graphics/png
- graphics/tiff
- graphics/webp
- lang/gcc14
- lang/python312
- lang/python315
- math/Imath
- math/gmp
- math/mpc
- math/mpdecimal
- math/mpfr
- math/openblas
- math/py-numpy
- misc/shared-mime-info
- print/freetype2
- print/indexinfo
- textproc/expat2
- textproc/libxml2
- x11-fonts/fontconfig
No port depends on this one.
Configuration
No options to configure.
- USES
- compiler:c++17-lang gmake
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| stefanhaustein-TerminalImageViewer-v1.2.1_GH0.tar.gz | 537635 | 08d0c30e3ffa47b69d1bce07bea56f04b7deb4a8a79307ce435a4f0852fbcd5f |
Commit history 0
No commits in the history this site was built from.