evripidesk commented on issue #525: Fix for the problem when Exif data is lost 
when getting an image from the photo library (iOS)
URL: 
https://github.com/apache/cordova-plugin-camera/pull/525#issuecomment-558570172
 
 
   Yes of course, iOS 13.2.2 
   ```
   const options: CameraOptions = {
                       quality: 100,
                       sourceType : this.camera.PictureSourceType.PHOTOLIBRARY,
                       destinationType: this.camera.DestinationType.FILE_URI,
                       encodingType: this.camera.EncodingType.JPEG,
                       mediaType: this.camera.MediaType.PICTURE,
                       saveToPhotoAlbum: false,
                       allowEdit: true,
                       //correctOrientation: true
                     } 
   ....
   exif.getData(  file1 , function(error) {
                                 if (error) {
                                   console.log(error)
                                 }
                                 var allMetaData = EXIF.getAllTags(this);
                                 console.log('ALL TAGS - ', allMetaData)
                         
                                 let lng = EXIF.getTag(this, 'GPSLongitude') || 
null
                                 let lat = EXIF.getTag(this, 'GPSLatitude') || 
null
                         
                                 console.log('LNG - ', lng)
                                 console.log('LAT - ', lat)
                             })
                             }
   ```
   config.xml
   ```<preference name="CameraUsesGeolocation" value="true" />```
   I installed on Ionic from this 
https://ionicframework.com/docs/native/camera/, on android is working
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to