A small script to render images to an ANSI terminal
Project description
Image 2 ANSI
Converts an image to a representation in ANSI
Installation
pip install img_term
Usage
usage: img_term [-h] [-img IMG] [-width WIDTH] [-cam CAM] [-col {4,8,24}]
Display image to terminal
optional arguments:
-h, --help show this help message and exit
-img IMG Image file to display
-width WIDTH Character width of output
-cam CAM Show camera, this is the default
-col {4,8,24} Colour scheme to use
Display an image in terminal
img_term -img dog.jpg
Render your video capture device to terminal:
img_term
Select a colour palette:
./img_term.py -img lena.jpg -col 24
Example
Go from this:
To this:
Or this
To this:
Or even render a video:
./img_term.py -col 24 -vid unrealset.mkv -width 78
https://gfycat.com/IdolizedSomeGemsbuck
Or simply stream your USB camera to terminal!:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
img_term-1.0.2.tar.gz
(7.3 kB
view details)
Built Distributions
img_term-1.0.2-py3.7.egg
(16.5 kB
view details)
File details
Details for the file img_term-1.0.2.tar.gz
.
File metadata
- Download URL: img_term-1.0.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e300a52fd6b31f3bce21067de21230c117f1aa2b000add9fd312d9a8d3f0fdd |
|
MD5 | 011439bd7733b63888eecdebe1410764 |
|
BLAKE2b-256 | ce2dab02d9dc589b558e64b8530aa881a87e3e8e6efc7a3478c02c28e417635a |
File details
Details for the file img_term-1.0.2-py3.7.egg
.
File metadata
- Download URL: img_term-1.0.2-py3.7.egg
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9f0ee6554a519c4e732a74c18bcdfdfbd816fe1b95d726c32e40cdb43400333 |
|
MD5 | e4e03cddc158f9011a2e9a4ccda99b3c |
|
BLAKE2b-256 | b074f843ac7aecd7b950f6a5e1228aba1f20f19d6ba00abe0a23eabb4c029896 |
File details
Details for the file img_term-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: img_term-1.0.2-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf3ee7a6609a39b65261c2a14ef672ebb5dce2b16002253be68aa09b63a442a5 |
|
MD5 | 3e2720d945d60433dd97859777bc2c1d |
|
BLAKE2b-256 | a2f26081a21f66a3455ea6cf3438d29e3acd0341846694de7d611d9c98a2a82c |