Skip to content

Instantly share code, notes, and snippets.

@Askadelion
Askadelion / image-to-ansi.py
Created June 3, 2023 08:19 — forked from klange/image-to-ansi.py
Convert images to ANSI escape sequences
#! /usr/bin/env python
""" Convert an image (argv[1]) to an ANSI text string (xterm-256color)
Original readme from colortrans.py follows:
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
Resources: