android / android/camera-samples
Camera2Basic: ExifUtils has a condition conflict for computing orientation
- Dominant language
- Kotlin
- Stars
- 5.5k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
Camera2Basic/utils/src/main/java/com/example/android/camera/utils/ExifUtils.kt

Line 32 conflicts with line 35 and causes saved images to be mirrored incorrectly.
Simply removing line 32 solved my issue.
Contributor guide
Research direction
Open Camera2Basic/utils/src/main/java/com/example/android/camera/utils/ExifUtils.kt and inspect the condition at line 32 alongside line 35. Reproduce the saved-image orientation behavior described in the issue, then verify that the conflicting condition is resolved and images are no longer mirrored.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100