simplify more, makes a bit more colorful

This commit is contained in:
Gordon Shumway 2019-03-20 19:28:00 -04:00 committed by GitHub
parent f49a389cb6
commit d96bbb49c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -155,10 +155,10 @@ class ASCII(callbacks.Plugin):
if cols > W or rows > H:
print("Image too small for specified cols!")
exit(0)
#image2 = image2.convert("P", dither=Image.FLOYDSTEINBERG, palette=Image.WEB)
image2 = image2.convert("P", dither=None, palette=Image.WEB)
if image2.mode != 'RGBA':
image2 = image2.convert('RGBA')
image2 = image2.resize((cols, rows), Image.LANCZOS)
image2 = image2.resize((cols, rows), Image.NEAREST)
colormap = np.array(image2)
# ascii image is a list of character strings
aimg = []