mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
_makeself → _new
This commit is contained in:
parent
2e178d7dbb
commit
5773fd8396
|
@ -997,7 +997,7 @@ class Image(object):
|
|||
"only RGB or L mode images can be quantized to a palette"
|
||||
)
|
||||
im = self.im.convert("P", 1, palette.im)
|
||||
return self._makeself(im)
|
||||
return self._new(im)
|
||||
|
||||
return self._new(self.im.quantize(colors, method, kmeans))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user