Commit 78b5bed3 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #9407 from GoulartNogueira/master

Fix orientation bug on preprocess
parents 1142a87c 48c06af8
...@@ -161,7 +161,9 @@ def preprocess_work(process_src, process_dst, process_width, process_height, pre ...@@ -161,7 +161,9 @@ def preprocess_work(process_src, process_dst, process_width, process_height, pre
params.subindex = 0 params.subindex = 0
filename = os.path.join(src, imagefile) filename = os.path.join(src, imagefile)
try: try:
img = Image.open(filename).convert("RGB") img = Image.open(filename)
img = ImageOps.exif_transpose(img)
img = img.convert("RGB")
except Exception: except Exception:
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment