mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
Merge pull request #15102 from light-and-ray/fix_jpeg_live_preview
fix_jpeg_live_preview
This commit is contained in:
commit
92d77e3fa8
1 changed files with 2 additions and 0 deletions
|
|
@ -162,5 +162,7 @@ class State:
|
|||
errors.record_exception()
|
||||
|
||||
def assign_current_image(self, image):
|
||||
if shared.opts.live_previews_image_format == 'jpeg' and image.mode == 'RGBA':
|
||||
image = image.convert('RGB')
|
||||
self.current_image = image
|
||||
self.id_live_preview += 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue