apache / apache/cordova-plugin-camera

Android: Exif location tags removed when selecting images from Gallery app

Open
#727 2 comments 1 reaction 0 assignees View on GitHub
platform: android
Dominant language
Objective-C
Stars
976
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

# Bug Report

## Problem
This problem occurs on Android devices:
The exif location tags are removed from the image when images taken with camera are selected from Samsung Gallery app with the camera plugin.

However, the exif tags are not removed if the images are taken with camera and selected from "recent files" with the camera plugin. Further, the exif tags are not removed if the images are taken with the camera-plugin and then selected from Samsung Gallery app.

### Command or Code
Plugin configuration:

var opts = {
quality: 30,
targetWidth: 900,
targetHeight: 900,
destinationType: Camera.DestinationType.FILE_URI,
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
encodingType: Camera.EncodingType.JPEG,
mediaType: Camera.MediaType.PICTURE,
allowEdit: false,
correctOrientation: true,
saveToPhotoAlbum: true
}

### Version information
cordova android 9.1.0
cordova-plugin-camera 5.0.1

## Checklist

- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Reproduce the camera plugin configuration on Android using Samsung Gallery, then compare EXIF location tags for the Gallery and recent-files selection paths. The fix is complete when selecting camera images from Samsung Gallery preserves their EXIF location tags without changing the other reported paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.