diff --git a/escpos/image.py b/escpos/image.py index af150ba..8dd46d4 100644 --- a/escpos/image.py +++ b/escpos/image.py @@ -2,9 +2,6 @@ This module contains the image format handler :py:class:`EscposImage`. -The class is designed to efficiently delegate image processing to -PIL, rather than spend CPU cycles looping over pixels. - :author: `Michael Billington `_ :organization: `python-escpos `_ :copyright: Copyright (c) 2016 Michael Billington @@ -14,6 +11,13 @@ PIL, rather than spend CPU cycles looping over pixels. from PIL import Image, ImageOps class EscposImage(object): + """ + Load images in, and output ESC/POS formats. + + The class is designed to efficiently delegate image processing to + PIL, rather than spend CPU cycles looping over pixels. + """ + def __init__(self, img_source): """ Load in an image diff --git a/escpos/printer.py b/escpos/printer.py index 086f8ff..ee9e227 100644 --- a/escpos/printer.py +++ b/escpos/printer.py @@ -292,4 +292,5 @@ class Dummy(Escpos): @property def output(self): + """ Get the data that was sent to this printer """ return b''.join(self._output_list)