mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
Changed variable
This commit is contained in:
parent
4f8173f53f
commit
f7504b1ef9
|
@ -115,7 +115,7 @@ class PpmImageFile(ImageFile.ImageFile):
|
||||||
if maxval > 255:
|
if maxval > 255:
|
||||||
if not mode == "L":
|
if not mode == "L":
|
||||||
raise ValueError(f"Too many colors for band: {token}")
|
raise ValueError(f"Too many colors for band: {token}")
|
||||||
if token < 2 ** 16:
|
if maxval < 2 ** 16:
|
||||||
self.mode = "I"
|
self.mode = "I"
|
||||||
rawmode = "I;16B"
|
rawmode = "I;16B"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user