Python Terminal Image Renderer
Project description
PTIR (Python Terminal Image Renderer)
Installation
pip install ptir
Usage
import ptir
image_path = ...
# Render the given image
ptir.render(image_path)
# Display entire 8-bit colour space
ptir.view8BitPalette()
# Display entire 24-bit colour space
ptir.view24bitPalette()
Documentation
ptir.render(image_path, width=100, height=100, interp_method='bilinear', c8bit=False)image_path: Path to the image that will be renderedwidth: The width of the output (will be 2 *widthcharacters wide)height: The height of the output (will be 2 *heightcharacters tall)interp_method: Rescale interpolation method (Either 'bilinear' or 'nearest_neighbour')c8bit: If True the image will be rendered in 8-bit colour, if False the image will be rendered in 24-bit colour. Not all terminal windows support 24-bit colour (Visit this website for more information)
Dependencies
opencv-python
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
ptir-1.tar.gz
(2.5 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
ptir-1-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file ptir-1.tar.gz.
File metadata
- Download URL: ptir-1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7346b22cc9f45c29268409e85401c4d26e1d3ffb1db2c126aed8a8a0a81c1952
|
|
| MD5 |
c0ff75eb7313b315458651ac675f5b07
|
|
| BLAKE2b-256 |
3c5c6c3a3d6d712114b76a0d042ef4b79709a385d46f2a6c417020397b307c5b
|
File details
Details for the file ptir-1-py3-none-any.whl.
File metadata
- Download URL: ptir-1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfa2346d7c20c60d2b5b83d680d827c89a850e65eca4c17639245c0ff8ba91b2
|
|
| MD5 |
e67a7421822923d51b9f9d8f6bc90b76
|
|
| BLAKE2b-256 |
fbdd06d2301748e12a0ad47c923e766ef554337736d876348ac903c66fc95c4f
|