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,7 +115,8 @@ 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)
|
||||||
im = im_orig
|
else:
|
||||||
|
im = im_orig
|
||||||
if im.mode != "RGB":
|
if im.mode != "RGB":
|
||||||
im = im.convert('RGB')
|
im = im.convert('RGB')
|
||||||
orig_w, orig_h = im.size
|
orig_w, orig_h = im.size
|
||||||
|
|||||||
Reference in New Issue
Block a user