Skip to content

Commit c2993db

Browse files
committed
changed picture mode RGBA => RGB
1 parent 8acc962 commit c2993db

File tree

1 file changed

+2
-2
lines changed
  • 2015-10-02-dctf/misc_100_doesnt_matter

1 file changed

+2
-2
lines changed

2015-10-02-dctf/misc_100_doesnt_matter/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ W zadaniu dostajemy obrazek [png](./m100.png) z zepsutym nagłówkiem. Rozpakowu
99
from PIL import Image
1010
with open('zlibdec.bin','rb') as f:
1111
data=f.read()
12-
im = Image.frombytes('RGBA',(891,550),data)
12+
im = Image.frombytes('RGB',(891,550),data)
1313
im.show()
1414
```
1515
i w wyniku otrzymujemy:
@@ -21,7 +21,7 @@ We get png picture with broken header checksum. With pixels extracted from file
2121
from PIL import Image
2222
with open('zlibdec.bin','rb') as f:
2323
data=f.read()
24-
im = Image.frombytes('RGBA',(891,550),data)
24+
im = Image.frombytes('RGB',(891,550),data)
2525
im.show()
2626
```
2727
as a result we get:

0 commit comments

Comments
 (0)