mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-20 20:24:45 +03:00
unnecessary values
This commit is contained in:
parent
383379567a
commit
c0ac29b578
|
@ -1111,7 +1111,8 @@ class Image:
|
||||||
from . import ImagePalette
|
from . import ImagePalette
|
||||||
|
|
||||||
mode = im.im.getpalettemode()
|
mode = im.im.getpalettemode()
|
||||||
im.palette = ImagePalette.ImagePalette(mode, im.im.getpalette(mode, mode))
|
palette = im.im.getpalette(mode, mode)[: colors * len(mode)]
|
||||||
|
im.palette = ImagePalette.ImagePalette(mode, palette)
|
||||||
|
|
||||||
return im
|
return im
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user