mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-03-15 14:09:36 +00:00
fix /view
returning image with wrong orientation
This commit is contained in:
parent
26b7372805
commit
297757778d
@ -302,6 +302,7 @@ class PromptServer():
|
|||||||
|
|
||||||
if channel == 'rgb':
|
if channel == 'rgb':
|
||||||
with Image.open(file) as img:
|
with Image.open(file) as img:
|
||||||
|
img = ImageOps.exif_transpose(img)
|
||||||
if img.mode == "RGBA":
|
if img.mode == "RGBA":
|
||||||
r, g, b, a = img.split()
|
r, g, b, a = img.split()
|
||||||
new_img = Image.merge('RGB', (r, g, b))
|
new_img = Image.merge('RGB', (r, g, b))
|
||||||
|
Loading…
Reference in New Issue
Block a user