1
0
Fork 0

fix(api): handle images with alpha channels better

This commit is contained in:
Sean Sube 2023-11-25 07:50:54 -06:00
parent 192bd08156
commit b1328fdfdb
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ def noise_source_normal(
def noise_source_histogram( def noise_source_histogram(
source: Image.Image, dims: Point, _origin: Point, **kw source: Image.Image, dims: Point, _origin: Point, **kw
) -> Image.Image: ) -> Image.Image:
r, g, b = source.split() r, g, b, *_a = source.split()
width, height = dims width, height = dims
size = width * height size = width * height