android / android/camera-samples

Camera2Basic: ExifUtils has a condition conflict for computing orientation

Open
#339 1 comment 3 reactions 0 assignees View on GitHub
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

![image](https://user-images.githubusercontent.com/9051476/102614427-e160e900-413c-11eb-9aa6-8623c6d5cc53.png)

Line 32 conflicts with line 35 and causes saved images to be mirrored incorrectly.
Simply removing line 32 solved my issue.

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.