apache / apache/cordova-plugin-camera
Exif data is getting lost when opening an image from the photo library
- Dominant language
- Objective-C
- Stars
- 976
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
# Bug Report
## Problem
Exif data is getting lost when opening an image from the photo library on an android device.
This is in continue to #329.
Related to an issue reported by our users:
https://github.com/IsraelHikingMap/Site/issues/932
### What is expected to happen?
Exif data should be kept
### What does actually happen?
Exif data is getting lost
## Information
I've just tested the code using the instructions #415 and I still see an issue with exif data getting lost when getting images from the photo library on android device.
The code I'm using is the following:
navigator.camera.getPicture(() => ..., { destinationType: Camera.DestinationType.DATA_URL, sourceType: Camera.PictureSourceType.PHOTOLIBRARY, saveToPhotoAlbum: false}).
Code can be seen here:
https://github.com/IsraelHikingMap/Site/blob/d81cfdfd339060aab9b512352741b5af00c8a214/IsraelHiking.Web/sources/application/directives/image-capture.directive.ts#L41
### Command or Code
### Environment, Platform, Device
Android, N2G47H 7.1.2, xiomi redmi 4
### Version information
Can be seen here:
https://github.com/IsraelHikingMap/Site/blob/master/IsraelHiking.Web/package.json
https://github.com/IsraelHikingMap/Site/blob/master/IsraelHiking.Web/config.xml
## Checklist
- [x] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version - I can't, latest cordova doesn't run on my windows 10 machine. the plugin is up-to-date though...
- [x] I included all the necessary information above
Contributor guide
Research direction
Start with IsraelHiking.Web/sources/application/directives/image-capture.directive.ts at the referenced call to navigator.camera.getPicture, using the PHOTOLIBRARY and DATA_URL options. Reproduce the Android photo-library flow and trace the camera plugin path it invokes; done means the returned image retains its Exif data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100