_makeself → _new

This commit is contained in:
homm 2016-11-23 14:41:43 +03:00
parent 2e178d7dbb
commit 5773fd8396

View File

@ -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))