Fix exif info display resolution orientation

This commit is contained in:
klymp
2026-07-26 17:20:54 +02:00
parent aa6183a95d
commit 626f6a1a3a
4 changed files with 31 additions and 4 deletions
+3
View File
@@ -62,6 +62,9 @@ const EXIF_RULES: FieldRule[] = [
if (info.exifImageWidth && info.exifImageHeight) {
out.width = info.exifImageWidth
out.height = info.exifImageHeight
if (info.orientation && ['5', '6', '7', '8'].includes(info.orientation)) {
[out.width, out.height] = [out.height, out.width]
}
}
}
},