Skip to content

Commit 655d2ba

Browse files
committed
Removed change to thermal library
1 parent 7b36213 commit 655d2ba

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Adafruit_Thermal.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -548,11 +548,8 @@ def printBitmap(self, w, h, bitmap, LaaT=False):
548548
# the Imaging Library to perform such operations before
549549
# passing the result to this function.
550550
def printImage(self, image_file, LaaT=False):
551-
image = image_file
552-
553-
if isinstance(image_file, str):
554-
image = Image.open(image_file)
555-
551+
from PIL import Image
552+
image = Image.open(image_file)
556553
if image.mode != '1':
557554
image = image.convert('1')
558555

0 commit comments

Comments
 (0)