Render images as ANSI colors in a terminal
Project description
Terminal Image Viewer
Render JPEG, PNG, GIF, and SVG images as ANSI colors in a terminal.
Source: https://gitlab.nul.one/mush/tiv
Installation
Install with pipx (recommended)
pipx install tiv
Install from a checkout
pipx install .
Install from git
pipx install git+https://gitlab.nul.one/mush/tiv.git
For development, install the package and its test and lint tools into a virtual environment:
python3 -m venv .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/python -m pip install -e '.[dev]'
Usage
tiv [OPTIONS] IMAGE [IMAGE [IMAGE...]]
Options
-w, --width INTEGER- Set image width in number of terminal characters. Defaults to the current terminal width.-a, --aspect-ratio FLOAT- Specify character aspect ratio (width:hight). Default is 0.5.
Development
python -m pytest
python -m ruff check .
python -m ruff format --check .
python -m build
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tiv-0.3.1.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tiv-0.3.1-py3-none-any.whl
(4.6 kB
view details)
File details
Details for the file tiv-0.3.1.tar.gz.
File metadata
- Download URL: tiv-0.3.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af30ee677ab26f14df5c421c4548ae42a74fb172172be3082c982f6799d917da
|
|
| MD5 |
cb551dd2308823c956be8270d88839a2
|
|
| BLAKE2b-256 |
8aa5bdaa55d3c3280f37f3363176c333fb6b58693cdb7c1afa38f761e3e07d34
|
File details
Details for the file tiv-0.3.1-py3-none-any.whl.
File metadata
- Download URL: tiv-0.3.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7be01c202342464f97f3199609d87193e5fdd0c5bde88f1558d3ac2efd3a7fe
|
|
| MD5 |
3b698eff4705137bd6c9a80f87454273
|
|
| BLAKE2b-256 |
5689d4509914d01028bacd23043ba54bc7322ce7a7118a63781724c89d427ca0
|