Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

XLabs photo GPS Info in Exif meta data always EMPTY

$
0
0

Hi all, hi XLabs user,

I am using the well known code for taking a photo based on the XLabs library:

private async Task<MediaFile> TakePicture()
{
    this.ImageSource = null;

    return await mediaPicker.TakePhotoAsync(new CameraMediaStorageOptions 
    { 
         DefaultCamera = CameraDevice.Rear, 
         MaxPixelDimension = 4000                 
    }).ContinueWith(t =>
    {
        if (t.IsFaulted)
        {
            Status = t.Exception.InnerException.ToString();
        }
        else if (t.IsCanceled)
        {
            Status = "Canceled";
        }
        else
        {
            var mediaFile = t.Result;
            ImageSource = ImageSource.FromStream(() => mediaFile.Source);
            return mediaFile;
        }

        return null;
    }, this.scheduler);
}

The problem is that the GPS meta data in the "mediaFile" Exif data is always empty. (see screenshot). I am using the XLabs.Forms version 2.0.5679 and the included ExifLib.PCL version 1.0.1.

In some other forum threads I have read of a bug in the area !? Is it solved ? Anyone who gets valid GPS data ?

Thanx for your help.

Marco


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>