mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-08 14:24:46 +03:00
Grayscale images can also be optimized...
This commit is contained in:
parent
53de81f0a1
commit
9570864163
|
@ -433,7 +433,7 @@ def getheader(im, palette=None, info=None):
|
|||
|
||||
usedPaletteColors = paletteBytes = None
|
||||
|
||||
if im.mode == "P" and optimize:
|
||||
if im.mode in ("P", "L") and optimize:
|
||||
usedPaletteColors = []
|
||||
|
||||
# check which colors are used
|
||||
|
|
Loading…
Reference in New Issue
Block a user