fix: avoid rotating Synology display dimensions twice
Community checks / verify (push) Skipped
Verify Frame Flow / verify (push) Successful in 6m41s

This commit is contained in:
渡口浪人
2026-10-18 17:59:02 +08:00
parent f39c7e535b
commit b1c41e91ea
9 changed files with 16 additions and 16 deletions
+1 -3
View File
@@ -481,9 +481,7 @@ class PhotoSources:
continue
size = row.get("additional", {}).get("resolution", {})
width, height = size.get("width", 0), size.get("height", 0)
rotation = row.get("additional", {}).get("orientation", 1)
if rotation in (5, 6, 7, 8):
width, height = height, width
# Photos resolution is already oriented; EXIF must not swap it twice.
if not self.resolution_matches(source, width, height):
continue
direction = orientation(width, height)