From 2343588fe6d273f32e7e7cf504690e85333845a1 Mon Sep 17 00:00:00 2001 From: Jin Wook Kim Date: Tue, 27 Oct 2020 19:35:21 +0900 Subject: [PATCH] Fix on printImage Image Object is already made in other scripts. --- Adafruit_Thermal.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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')