Update displaydevice.py

This commit is contained in:
June Tate-Gans 2024-11-26 10:14:31 -06:00 committed by GitHub
parent 4da329385f
commit 7584222746
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,7 @@ class DisplayMetrics(object):
def ImageToLPBM(image):
#Simple function to convert a PIL Image into LPBM format.
"""Simple function to convert a PIL Image into LPBM format"""
# Ensure the image is in grayscale ('L') or monochrome ('1') mode
image = image.convert('1') # Convert to monochrome (1-bit) if not already