fix(api): handle images with alpha channels better
This commit is contained in:
parent
192bd08156
commit
b1328fdfdb
|
@ -94,7 +94,7 @@ def noise_source_normal(
|
|||
def noise_source_histogram(
|
||||
source: Image.Image, dims: Point, _origin: Point, **kw
|
||||
) -> Image.Image:
|
||||
r, g, b = source.split()
|
||||
r, g, b, *_a = source.split()
|
||||
width, height = dims
|
||||
size = width * height
|
||||
|
||||
|
|
Loading…
Reference in New Issue