Skip to content

Commit 90e7871

Browse files
committed
Fix example and add line for dithering
1 parent 47289da commit 90e7871

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/epd_pillow_image.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@
7171
# Crop and center the image
7272
x = scaled_width // 2 - display.width // 2
7373
y = scaled_height // 2 - display.height // 2
74-
image = image.crop((x, y, x + display.width, y + display.height))
74+
image = image.crop((x, y, x + display.width, y + display.height)).convert("RGB")
75+
76+
# Convert to Monochrome and Add dithering
77+
# image = image.convert("1").convert("L")
7578

7679
# Display image.
7780
display.image(image)

0 commit comments

Comments
 (0)