We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72a7a4a commit 3a62483Copy full SHA for 3a62483
1 file changed
adafruit_imageload/png.py
@@ -61,6 +61,10 @@ def load(
61
height = 0
62
while True:
63
size, chunk = struct.unpack(">I4s", file.read(8))
64
+ print("==================")
65
+ print(size)
66
+ print(chunk)
67
+ print('====================')
68
if chunk == b"IHDR":
69
(
70
width,
@@ -86,6 +90,9 @@ def load(
86
90
pal = palette(pal_size)
87
91
for i in range(pal_size):
88
92
pal[i] = file.read(3)
93
+ elif chunk == b"tRNS":
94
+ transparent = file.read(size)
95
+ print(transparent)
89
96
elif chunk == b"IDAT":
97
data.extend(file.read(size))
98
elif chunk == b"IEND":
0 commit comments