fix(api): always fill inpaint/outpaint mask with white
This commit is contained in:
parent
6a6f482178
commit
1f06b502d5
|
@ -181,7 +181,8 @@ def expand_image(
|
|||
full_source = Image.new("RGB", dims, fill)
|
||||
full_source.paste(source_image, origin)
|
||||
|
||||
full_mask = mask_filter(mask_image, dims, origin, fill=fill)
|
||||
# new mask pixels need to be filled with white so they will be replaced
|
||||
full_mask = mask_filter(mask_image, dims, origin, fill="white")
|
||||
full_noise = noise_source(source_image, dims, origin, fill=fill)
|
||||
full_noise = ImageChops.multiply(full_noise, full_mask)
|
||||
|
||||
|
|
Loading…
Reference in New Issue