JoshuaBragg / PTIR

Python Terminal Image Renderer
https://pypi.org/project/ptir/
MIT License
2 stars 0 forks source link

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

Example #1

Original:

mountain original

24-bit:

mountain 24-bit

8-bit:

mountain 8-bit

Example #2

Original:

mario original

24-bit:

mario 24-bit

8-bit:

mario 8-bit

Dependencies