Merge remote-tracking branch 'upstream/release-v1.77'

This commit is contained in:
Tulir Asokan 2023-02-12 14:02:57 +02:00
commit 3b1430bd0b
184 changed files with 3888 additions and 1693 deletions

View file

@ -77,7 +77,7 @@ class Thumbnailer:
image_exif = self.image._getexif() # type: ignore
if image_exif is not None:
image_orientation = image_exif.get(EXIF_ORIENTATION_TAG)
assert isinstance(image_orientation, int)
assert type(image_orientation) is int
self.transpose_method = EXIF_TRANSPOSE_MAPPINGS.get(image_orientation)
except Exception as e:
# A lot of parsing errors can happen when parsing EXIF