mirror of
https://github.com/jtgans/g13gui.git
synced 2025-06-20 00:14:09 -04:00
Update displaydevice.py
This commit is contained in:
parent
4da329385f
commit
7584222746
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user