Make sure that image orientation is correct before creating thumbnail

This commit is contained in:
Simon Conseil
2020-12-08 23:32:21 -03:00
parent 27bd95b831
commit a77b2e3f2e

View File

@@ -154,6 +154,7 @@ def generate_thumbnail(source, outname, box, fit=True, options=None,
logger = logging.getLogger(__name__)
img = _read_image(source)
img = Transpose().process(img)
original_format = img.format
if fit: