img: handle alpha for all options

This commit is contained in:
Gordon Shumway 2019-05-30 23:09:47 -04:00 committed by GitHub
parent b5af122236
commit f35892d44d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ class ASCII(callbacks.Plugin):
image2 = image.convert('P', dither=Image.FLOYDSTEINBERG, palette=Image.ADAPTIVE)
else:
image2 = image.convert('P', dither=None, palette=Image.ADAPTIVE)
image2 = image.convert('RGB')
image2 = image2.convert('RGB')
colormap = np.array(image2)
self.matches = {}
image = image.convert('L')