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.

Files for img-term, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size img_term-1.0.2-py3.7.egg (16.5 kB) File type Egg Python version 3.7 Upload date Hashes View
Filename, size img_term-1.0.2-py3-none-any.whl (8.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size img_term-1.0.2.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page