Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mobile] Normalize rotation turns for EXIF orientation

Priyanshu Dangarea9e5b8c6a0f3
diff --git a/mobile/apps/photos/lib/utils/lossless_edits.dart b/mobile/apps/photos/lib/utils/lossless_edits.dart
index d344bc0530..0b3cbacd9b 100644
--- a/mobile/apps/photos/lib/utils/lossless_edits.dart
+++ b/mobile/apps/photos/lib/utils/lossless_edits.dart
@@ -66,7 +66,7 @@ int? _orientationToTurns(int? orientation) {
}
int _turnsToOrientation(int turns) {
- return switch (turns % 4) {
+ return switch ((turns % 4 + 4) % 4) {
1 => 6,
2 => 3,
3 => 8,