Skip to main content

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:

Dog

To this:

Screenshot

Or this

Lenna

To this:

LenaPixel

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!:

https://gfycat.com/RemarkablePalatableKob

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

img_term-1.0.0-py3.7.egg (13.0 kB view details)

Uploaded Source

File details

Details for the file img_term-1.0.0-py3.7.egg.

File metadata

  • Download URL: img_term-1.0.0-py3.7.egg
  • Upload date:
  • Size: 13.0 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

Hashes for img_term-1.0.0-py3.7.egg
Algorithm Hash digest
SHA256 1d3cd09b095b1055d7dd7db99daf427eff64d7a031093b7c60432cf2bb063f54
MD5 45e6ac976264647aad5eb1e140948dfc
BLAKE2b-256 49a1f48e844c7952c521748566eb03f4f70f508fc8100316c758aa2c75fb5607

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page