diff --git a/gallery/file_modules/__init__.py b/gallery/file_modules/__init__.py index 39917ab..efe88db 100644 --- a/gallery/file_modules/__init__.py +++ b/gallery/file_modules/__init__.py @@ -39,6 +39,7 @@ def generate_thumbnail(self): self.thumbnail_uuid = hash_file(self.file_path) with Image(filename=self.file_path) as img: + img.auto_orient() with Image(width=img.width, height=img.height, background=Color("#EEEEEE")) as bg: bg.composite(img, 0, 0)