Skip to content

Commit

Permalink
Merge pull request #15102 from light-and-ray/fix_jpeg_live_preview
Browse files Browse the repository at this point in the history
fix_jpeg_live_preview
  • Loading branch information
AUTOMATIC1111 authored Mar 4, 2024
2 parents 48a677c + 0103365 commit 92d77e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/shared_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,7 @@ def do_set_current_image(self):
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

0 comments on commit 92d77e3

Please sign in to comment.