diff --git a/Adafruit_Thermal.py b/Adafruit_Thermal.py index 2043d5a..c0eee34 100644 --- a/Adafruit_Thermal.py +++ b/Adafruit_Thermal.py @@ -547,9 +547,8 @@ def printBitmap(self, w, h, bitmap, LaaT=False): # For any other behavior (scale, B&W threshold, etc.), use # the Imaging Library to perform such operations before # passing the result to this function. - def printImage(self, image_file, LaaT=False): + def printImage(self, image, LaaT=False): from PIL import Image - image = Image.open(image_file) if image.mode != '1': image = image.convert('1')