aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <s@jaseg.de>2013-04-02 02:48:29 +0200
committerjaseg <s@jaseg.de>2013-04-02 02:48:29 +0200
commitbaf9ee4f3dfc4b7a98de3bf6c191693d098b5067 (patch)
tree86281e74e5ac1cb20ef521c3975d8ad870ca9bd0
parent4493e514b3f0c36233a58fb03ebfc4f45574ee7c (diff)
downloadpixelterm-baf9ee4f3dfc4b7a98de3bf6c191693d098b5067.tar.gz
pixelterm-baf9ee4f3dfc4b7a98de3bf6c191693d098b5067.tar.bz2
pixelterm-baf9ee4f3dfc4b7a98de3bf6c191693d098b5067.zip
Added note about rgb->x256 color conversion
-rwxr-xr-xpixelterm.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pixelterm.py b/pixelterm.py
index 89866a7..2713f06 100755
--- a/pixelterm.py
+++ b/pixelterm.py
@@ -1,6 +1,10 @@
#!/usr/bin/env python
import os, sys, argparse
+#NOTE: This script uses pygments for RGB->X256 conversion since pygments is
+#readily available. If you do not like pygments (e.g. because it is large),
+#you could patch in something like https://github.com/magarcia/python-x256
+#(but don't forget to send me a pull request ;)
from pygments.formatters import terminal256
from PIL import Image, PngImagePlugin