Skip to content

Commit 99760be

Browse files
committed
fix dither
1 parent 9c58df6 commit 99760be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unmap/unweave.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def convert_imarray(imarray, colors=256):
4040
elif np.max(imarray) <= 1.0:
4141
imarray = imarray * 255
4242
imp = Image.fromarray(np.uint8(imarray))
43-
imp = imp.quantize(colors=colors, dither=Image.NONE)
43+
imp = imp.quantize(colors=colors, dither=Image.Dither.NONE)
4444
imp.thumbnail((512, 512))
4545
imarray = np.array(imp)
4646
palette = np.array(imp.getpalette()).reshape(-1, 3)

0 commit comments

Comments
 (0)