未验证 提交 e287d9b2 编写于 作者: A AUTOMATIC1111 提交者: GitHub

Merge pull request #7650 from vladmandic/img2img-fix

Convert image from RGBA to RGB before saving
......@@ -73,6 +73,8 @@ def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args):
if not save_normally:
os.makedirs(output_dir, exist_ok=True)
if processed_image.mode == 'RGBA':
processed_image = processed_image.convert("RGB")
processed_image.save(os.path.join(output_dir, filename))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册