no 99 color reduction

This commit is contained in:
Gordon Shumway 2019-06-03 15:48:26 -04:00 committed by GitHub
parent d8a6621933
commit a0925fe8de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -590,9 +590,9 @@ class ASCII(callbacks.Plugin):
image = image.resize((cols, rows), Image.LANCZOS) image = image.resize((cols, rows), Image.LANCZOS)
if 'nocolor' not in optlist: if 'nocolor' not in optlist:
if 'dither' in optlist: if 'dither' in optlist:
image2 = image.convert('P', dither=Image.FLOYDSTEINBERG, palette=Image.ADAPTIVE, colors=99) image2 = image.convert('P', dither=Image.FLOYDSTEINBERG, palette=Image.ADAPTIVE)
else: else:
image2 = image.convert('P', dither=None, palette=Image.ADAPTIVE, colors = 99) image2 = image.convert('P', dither=None, palette=Image.ADAPTIVE)
image2 = image2.convert('RGB') image2 = image2.convert('RGB')
colormap = np.array(image2) colormap = np.array(image2)
self.matches = {} self.matches = {}