nextcloud / nextcloud/android

Incorrect orientation of offline pictures (NC app on Android, exif orientation "3")

Open
#17,272 0 comments 0 reactions 0 assignees View on GitHub
0. Needs triage bug
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### ⚠️ Before posting ⚠️

- [x] This is a **bug**, not a question or an enhancement.
- [x] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).

### Steps to reproduce

1. download the photo in NC app on Android to "local storage" (sync for offline usage) and open/display it - it is upside down (not rotated)
2) after you delete the photo from "local storage" in NC app on Android, open it again and the orientation is correct

Image

https://github.com/user-attachments/assets/877a7fae-1bb6-4fea-b497-4b8b1c5df5fa

### Expected behaviour

Orientation of the photo should follow EXIF - Orientation: 3 (Rotate 180) in NC app on Android

### Actual behaviour

Localy downloaded photo with EXIF Orientation: 3 (Rotate 180) is shown upside down in NC app on Android

### Android version

15

### Device brand and model

moto g54 5G (XT2343-6)

### Stock or custom OS?

Stock

### Nextcloud android app version

34.0.1

### Nextcloud server version

Nextcloud Hub 10 (31.0.14)

### Using a reverse proxy?

No

### Android logs

not needed

### Server error logs

```bash
not needed
```

### Additional information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the Nextcloud Android app using a locally downloaded photo with EXIF Orientation 3, then compare it with the same photo opened after local deletion. Trace the offline/local-storage image display entry point and verify that the photo is rendered with the EXIF rotation in Android 15; done means the offline view is no longer upside down while the online view remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.