Second photo changes orientation after saving when sketches are added
Description When adding the first and second photo from the gallery and applying sketches to both, the second photo changes its orientation after saving. The first photo retains its correct orientation, but the second one appears rotated.
Environment staging
Application (+ app version, build, operating system) App: Mergin Maps Mobile (Android) App version: 2025.6.0 (build 714011) Device/OS: Samsung Galaxy A53 5G, Android 15 Test project: tester-ws-1/test_photo-sketches
Steps to reproduce
- [ ] In the mobile app open project tester-ws-1/test_photo-sketches.
- [ ] Create a new feature in layer point_photo_layer;
- [ ] Add Photo A and Photo B from the gallery.
- [ ] Enter sketch mode; add a sketch; save sketch.
- [ ] Observe that the orientation of photos changed.
Actual results Second photo changes orientation after saving when sketches are added
Expected results Both photos should maintain their original orientation after saving when sketches are added.
https://github.com/user-attachments/assets/5a3b1fa2-7833-491e-94bd-112db4f5538e
Hi @Withalion
A similar issue appears on the Samsung Galaxy Tab (android 9) / App version: 2025.6.0 (build 714011) - when taking the first and second photo / adding photos from gallery and applying sketches, both photos change orientation.
@Withalion
The new update for APP v: 2025.7.0 (build 719411) / Samsung Galaxy A53 5G, Android 15
After adding photos from the gallery and applying sketches, both photos change the orientation. The photos on the web and in the plugin - have the correct orientation.
https://github.com/user-attachments/assets/928140af-5d25-4d29-bc51-009dd5da167d
Re-tested for APP v: 2025.7.0 (build 721011) / Samsung Galaxy TAB S3, Android 09
The same issue appears for both photos taking from camera or adding from gallery.
When the first sketch is added:
- the photo in the app rotates by 90 degrees
- but the photo on the web and plugin has the correct orientation.
When you edit the photos and add a second sketch:
- the photo in the app rotates another 90 degrees
- the photo on the web and plugin also changes its orientation by 90 degrees.