Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Adafruit_Thermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down