diff options
| author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2025-10-13 06:11:14 +0000 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2025-10-13 06:11:14 +0000 |
| commit | 93672b76f29d5bb0bbb41a22389e69dafe8acd9c (patch) | |
| tree | 081c8cc17c009188c0ef292b3d521f4fd4dba4f3 | |
| parent | 47a011b6c5d0fb1747a1742d31de75e60e50d078 (diff) | |
textproc/py-textual-image: Add py-textual-image 0.8.4
textual-image renders images directly in your terminal using Textual and Rich.
textual-image offers both Rich renderables and Textual Widgets that leverage the
Terminal Graphics Protocol (TGP) and Sixel protocols to display images in your
terminal. For terminals that don't support these protocols, fallback rendering
using Unicode characters is available.
Supported Terminals:
- Terminal Graphics Protocol (TGP): Initially introduced by the Kitty terminal
emulator. While support is partially available in other terminals, it doesn't
seem to be really usable there.
- Sixel Graphics: Supported by various terminal emulators including xterm and a
lot of others.
| -rw-r--r-- | textproc/Makefile | 1 | ||||
| -rw-r--r-- | textproc/py-textual-image/Makefile | 25 | ||||
| -rw-r--r-- | textproc/py-textual-image/distinfo | 3 | ||||
| -rw-r--r-- | textproc/py-textual-image/pkg-descr | 13 |
4 files changed, 42 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 1d363ca24440..6194d2005d72 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1691,6 +1691,7 @@ SUBDIR += py-texttable SUBDIR += py-textual SUBDIR += py-textual-autocomplete + SUBDIR += py-textual-image SUBDIR += py-textual0 SUBDIR += py-textwrap3 SUBDIR += py-three-merge diff --git a/textproc/py-textual-image/Makefile b/textproc/py-textual-image/Makefile new file mode 100644 index 000000000000..990f9c659a98 --- /dev/null +++ b/textproc/py-textual-image/Makefile @@ -0,0 +1,25 @@ +PORTNAME= textual-image +PORTVERSION= 0.8.4 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= textual_image-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Render images via Kitty's Terminal Graphics Protocol with Rich and Textual +WWW= https://github.com/lnqs/textual-image + +LICENSE= LGPL3 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>=10.3.0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rich>=13.4.0:textproc/py-rich@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/textproc/py-textual-image/distinfo b/textproc/py-textual-image/distinfo new file mode 100644 index 000000000000..28c573aa29d4 --- /dev/null +++ b/textproc/py-textual-image/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1759816482 +SHA256 (textual_image-0.8.4.tar.gz) = d13f960da07659cfac9d9e417ca7057b3ac0c17a7827ae8e47c3b164d43776fc +SIZE (textual_image-0.8.4.tar.gz) = 109056 diff --git a/textproc/py-textual-image/pkg-descr b/textproc/py-textual-image/pkg-descr new file mode 100644 index 000000000000..c7392882efdf --- /dev/null +++ b/textproc/py-textual-image/pkg-descr @@ -0,0 +1,13 @@ +textual-image renders images directly in your terminal using Textual and Rich. + +textual-image offers both Rich renderables and Textual Widgets that leverage the +Terminal Graphics Protocol (TGP) and Sixel protocols to display images in your +terminal. For terminals that don't support these protocols, fallback rendering +using Unicode characters is available. + +Supported Terminals: +- Terminal Graphics Protocol (TGP): Initially introduced by the Kitty terminal + emulator. While support is partially available in other terminals, it doesn't + seem to be really usable there. +- Sixel Graphics: Supported by various terminal emulators including xterm and a + lot of others. |
