mobile icon indicating copy to clipboard operation
mobile copied to clipboard

Second photo changes orientation after saving when sketches are added

Open IvaKuklica opened this issue 2 months ago • 3 comments

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

  1. [ ] In the mobile app open project tester-ws-1/test_photo-sketches.
  2. [ ] Create a new feature in layer point_photo_layer;
  3. [ ] Add Photo A and Photo B from the gallery.
  4. [ ] Enter sketch mode; add a sketch; save sketch.
  5. [ ] 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

IvaKuklica avatar Oct 13 '25 13:10 IvaKuklica

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.

IvaKuklica avatar Oct 15 '25 07:10 IvaKuklica

@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

IvaKuklica avatar Oct 17 '25 08:10 IvaKuklica

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.

IvaKuklica avatar Oct 29 '25 10:10 IvaKuklica