We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c58df6 commit 99760beCopy full SHA for 99760be
unmap/unweave.py
@@ -40,7 +40,7 @@ def convert_imarray(imarray, colors=256):
40
elif np.max(imarray) <= 1.0:
41
imarray = imarray * 255
42
imp = Image.fromarray(np.uint8(imarray))
43
- imp = imp.quantize(colors=colors, dither=Image.NONE)
+ imp = imp.quantize(colors=colors, dither=Image.Dither.NONE)
44
imp.thumbnail((512, 512))
45
imarray = np.array(imp)
46
palette = np.array(imp.getpalette()).reshape(-1, 3)
0 commit comments