change default composite background color

This commit is contained in:
Gordon Shumway 2019-10-24 15:30:29 -04:00 committed by GitHub
parent 1623ee6bfb
commit b6459b42a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -887,7 +887,7 @@ class ASCII(callbacks.Plugin):
image = Image.open(filename)
if image.mode == 'RGBA':
if bg == 99:
newbg = 0
newbg = 1
else:
newbg = bg
image = Image.alpha_composite(Image.new("RGBA", image.size, self.rgbColors[newbg] + (255,)), image)