Skip to content

Instantly share code, notes, and snippets.

View svalgaard's full-sized avatar

Jens Svalgaard Kohrt svalgaard

View GitHub Profile
@svalgaard
svalgaard / image-to-ansi.py
Last active August 13, 2019 07:45 — forked from klange/image-to-ansi.py
Convert images to ANSI escape sequences
#! /usr/bin/env python2
""" 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: