如何从与苹果iPhone拍摄的图像读取EXIF数据 [英] How can I read the EXIF data from an image taken with an Apple iPhone

查看:926
本文介绍了如何从与苹果iPhone拍摄的图像读取EXIF数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何从一个苹果iPhone 使用C#拍摄的图像读取EXIF数据?

How can I read the EXIF data from an image taken with an Apple iPhone using C#?

我需要相关的数据的GPS。

I need the GPS related data.

PS:我知道如何读取EXIF除了与苹果iPhone

PS: I know how to read EXIF except image taken with an Apple iPhone

推荐答案

我建议你看一看在谷歌的 exiflibrary 项目代码及其相关的 ExifLibrary的代码项目.NET 文章。

I would recommend you take a look at the exiflibrary project on Google Code and its associated ExifLibrary for .NET article on Code Project.

它支持超过150个已知的EXIF标签,包括相关的那些32 GPS。获取经纬度一样简单:

It supports over 150 known EXIF tags including 32 GPS related ones. Getting the latitude and longitude is as easy as:

var exif = ExifFile.Read(fileName);
Console.WriteLine(exif.Properties[ExifTag.GPSLatitude]);
Console.WriteLine(exif.Properties[ExifTag.GPSLongitude]);



它甚至有二进制数据的交互式可视化的一个整洁的小演示应用程序:

It even has a neat little demo application with an interactive visualization of the binary data:

这篇关于如何从与苹果iPhone拍摄的图像读取EXIF数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆