CLImage is a Python library for converting images into ANSI escape code strings, enabling terminal image display using TrueColor, 256-color, or monochrome palettes. Current version 0.2.2, updated to support Python >=3.2. Releases are infrequent.
pip install climageVerified import paths — ran on the pinned version, not inferred.
Converts a PIL Image to ANSI escape codes and prints to terminal.
Always open the image with Image.open() before passing to convert.
Set is_truecolor=False and is_256color=True for broader terminal support.
Convert image to a supported format before using climage.
Use `from climage import convert` or access `climage.climage.convert` after import.
Open the image first: `from PIL import Image; img = Image.open('path.png')` then pass `img`.Convert the image to PNG or JPEG before processing, e.g., using Pillow's convert.