We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9af32a9 commit 3df92e8Copy full SHA for 3df92e8
1 file changed
EInk_Autostereograms/code.py
@@ -78,9 +78,7 @@ def display_bitmap(epd, filename):
78
print("Width: %d\nHeight: %d" % (bmpWidth, bmpHeight))
79
if read_le(f.read(2)) != 1:
80
raise BMPError("Not singleplane")
81
- bmpDepth = read_le(f.read(2)) # bits per pixel
82
- print("Bit depth: %d" % (bmpDepth))
83
- if bmpDepth != 1:
+ if read_le(f.read(2)) != 1: # bits per pixel
84
raise BMPError("Not 1-bit")
85
if read_le(f.read(4)) != 0:
86
raise BMPError("Compressed file not supported")
@@ -285,7 +283,7 @@ def run_job(jobfile):
285
283
if (
286
284
(image[x - panelwidth // 2, y] != 0 and not inv
287
) or (
288
- image[x - panelwidth // 2, y] == 0 and inv)
+ image[x - panelwidth // 2, y] == 0 and inv)
289
):
290
# offset = 4
291
if job["imagegrayscale"] == 0:
0 commit comments