mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +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 not mode == "L":
|
||||
raise ValueError(f"Too many colors for band: {token}")
|
||||
if token < 2 ** 16:
|
||||
if maxval < 2 ** 16:
|
||||
self.mode = "I"
|
||||
rawmode = "I;16B"
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user