Xamarin.MediaGallery icon indicating copy to clipboard operation
Xamarin.MediaGallery copied to clipboard

GPS metadata of images taken with the CapturePhotoAsync method is set to 0.

Open bizyyosh opened this issue 2 years ago • 0 comments

Description

Images taken using the CapturePhotoAsync method do not contain GPS information.

The info.plist describes the permissions for using the camera and location information.

I am not familiar with development on iOS. I don't know if the plugin is the cause. Any advice would be appreciated.

Expected behavior

Latitude and longitude of the shooting location are included in the meta data.

Steps to reproduce the behavior

if (!MediaGallery.CheckCapturePhotoSupport())
    return;

var status = await Permissions.RequestAsync<Permissions.Camera>();

if (status != PermissionStatus.Granted)
    return;

using (var file = await MediaGallery.CapturePhotoAsync())
{
    var stream = await file.OpenReadAsync();
    var exif = ExifReader.ReadJpeg(stream);
}

Screenshots or Videos

スクリーンショット 2022-08-15 14 26 06

Configuration

  • Device: iPhone 13 mini
  • OS Version: 15.6
  • Plugin Version: 2.1.1
  • Framework: Xamarin.Forms

bizyyosh avatar Aug 15 '22 05:08 bizyyosh