Skip to content

Commit

Permalink
fix(api): handle images with alpha channels better
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Nov 25, 2023
1 parent 192bd08 commit b1328fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/image/noise_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b1328fd

Please sign in to comment.