mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
Merge branch 'master' of https://github.com/dvska/Pillow into cleanup
This commit is contained in:
commit
adc17c156d
|
@ -45,7 +45,7 @@ def _parse_codestream(fp):
|
|||
elif csiz == 3:
|
||||
mode = 'RGB'
|
||||
elif csiz == 4:
|
||||
mode == 'RGBA'
|
||||
mode = 'RGBA'
|
||||
else:
|
||||
mode = None
|
||||
|
||||
|
@ -122,7 +122,7 @@ def _parse_jp2_header(fp):
|
|||
if nc == 3:
|
||||
mode = 'RGB'
|
||||
elif nc == 4:
|
||||
mode == 'RGBA'
|
||||
mode = 'RGBA'
|
||||
break
|
||||
|
||||
return (size, mode)
|
||||
|
|
Loading…
Reference in New Issue
Block a user