mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-30 07:21:16 -05:00
no 99 color reduction
This commit is contained in:
parent
d8a6621933
commit
a0925fe8de
@ -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 = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user