Skip to content

Commit

Permalink
changed picture mode RGBA => RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
other019 committed Oct 7, 2015
1 parent 8acc962 commit c2993db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2015-10-02-dctf/misc_100_doesnt_matter/readme.md
Expand Up @@ -9,7 +9,7 @@ W zadaniu dostajemy obrazek [png](./m100.png) z zepsutym nagłówkiem. Rozpakowu
from PIL import Image
with open('zlibdec.bin','rb') as f:
data=f.read()
im = Image.frombytes('RGBA',(891,550),data)
im = Image.frombytes('RGB',(891,550),data)
im.show()
```
i w wyniku otrzymujemy:
Expand All @@ -21,7 +21,7 @@ We get png picture with broken header checksum. With pixels extracted from file
from PIL import Image
with open('zlibdec.bin','rb') as f:
data=f.read()
im = Image.frombytes('RGBA',(891,550),data)
im = Image.frombytes('RGB',(891,550),data)
im.show()
```
as a result we get:
Expand Down

0 comments on commit c2993db

Please sign in to comment.