We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I am using your library in Unity and want to grab the meta details from a photo. It is coming up with a Null Reference.
Anybody know what I am doing wrong? Path does return - "/storage/emulated/0/Android/media/..."
private async void GetMetaData(int index, string path, string width, string height) { Debug.Log(path); await ImageFile.FromFileAsync(path).ContinueWith(t => { var file = t.Result; foreach(var property in file.Properties) { Console.WriteLine(property.Name); } var latTag = file.Properties.Get<GPSLatitudeLongitude>(ExifTag.GPSLatitude); Debug.Log(latTag.ToString()); var longTag = file.Properties.Get<GPSLatitudeLongitude>(ExifTag.GPSLongitude); Debug.Log(longTag.ToString()); var dateTimeTag = file.Properties.Get(ExifTag.DateTime); DateTime dateTime = ((ExifDateTime)dateTimeTag).Value; Debug.Log("Getting MetaData Lat- "+latTag.ToFloat()+", Long- "+longTag.ToFloat()+", DateTime- "+dateTime.ToString("dd/MM/yyyy hh:mm")); SaveMetaData(index, latTag.ToFloat(), longTag.ToFloat(), dateTime.ToString("dd/MM/yyyy hh:mm"), width, height); }); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I am using your library in Unity and want to grab the meta details from a photo. It is coming up with a Null Reference.
Anybody know what I am doing wrong? Path does return - "/storage/emulated/0/Android/media/..."
The text was updated successfully, but these errors were encountered: