fix new bug introd, where after exif transpose I stupidly im to use im_orig always, instead of if its not a JPEG
This commit is contained in:
@@ -115,6 +115,7 @@ def GenThumb(fname):
|
|||||||
im_orig = Image.open(fname)
|
im_orig = Image.open(fname)
|
||||||
if im_orig.format == 'JPEG':
|
if im_orig.format == 'JPEG':
|
||||||
im = ImageOps.exif_transpose(im_orig)
|
im = ImageOps.exif_transpose(im_orig)
|
||||||
|
else:
|
||||||
im = im_orig
|
im = im_orig
|
||||||
if im.mode != "RGB":
|
if im.mode != "RGB":
|
||||||
im = im.convert('RGB')
|
im = im.convert('RGB')
|
||||||
|
|||||||
Reference in New Issue
Block a user