change quantization method

This commit is contained in:
Gordon Shumway 2019-08-27 19:50:22 -04:00 committed by GitHub
parent bbcd98fc85
commit f555b08f0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -930,7 +930,7 @@ class ASCII(callbacks.Plugin):
image2 = hitherdither.diffusion.error_diffusion_dithering(image2, self.palette, method=dither)
image2 = image2.convert('RGB')
elif quantize:
image2 = image2.quantize(method=1, dither=None)
image2 = image2.quantize(dither=None)
image2 = image2.convert('RGB')
colormap = np.array(image2)
self.matches = {}