This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# esc-pos-image-star.py - print image files given as command line arguments | |
# to simple ESC-POS image on stdout | |
# using ESC * \x21 | |
# scruss - 2014-07-26 - WTFPL (srsly) | |
import sys | |
from PIL import Image | |
import PIL.ImageOps | |
import struct |