remoorejr / cordova-plugin-camera-with-exif

Cordova Camera Plugin that will return an image as well as the EXIF data (including GPS location) on iOS and Android devices.
Apache License 2.0
38 stars 53 forks source link

Crashing on iOS 8.1.1 and returning no exif on Android Marshmallow #14

Closed lbhifi closed 6 years ago

lbhifi commented 7 years ago

cordova-plugin-camera-with-exif v. 1.1.9

If I pass these options then iOS crashes and Android just returns the base64 without exif (json_metadata="error retrieveing exif from external url"):

correctOrientation:true destinationType:Camera.DestinationType.DATA_URL encodingType:Camera.EncodingType.JPEG quality:60 sourceType:Camera.PictureSourceType.PHOTOLIBRARY targetHeight:900 targetWidth:1200

lbhifi commented 7 years ago

Ok, I see that the readme states "The Camera.Destination must be set to FILE_URI", but it only works with Camera.PictureSourceType.CAMERA (only tried Android). I was hoping this plug-in would give me the exif regardless of source and destination type.

lbhifi commented 7 years ago

Ok, I now tried it on iOS 10.2 and 8.1.1, and it just doesn't work with existing pictures using sourceType:Camera.PictureSourceType.PHOTOLIBRARY. Tried FILE_URI and NATIVE_URI and there's no exif data using either.