mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-17 10:10:26 -04:00
Merge remote-tracking branch 'upstream/release-v1.77'
This commit is contained in:
commit
3b1430bd0b
184 changed files with 3888 additions and 1693 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue