2015-07-01 35 views

回答

0

这就是所谓的Exif数据。 System.Drawing.Image.PropertyItems可以读取这些数据,例如:

// Create an Image object. 
Image image = new Bitmap(@"c:\FakePhoto.jpg"); 

// Get the PropertyItems property from image. 
PropertyItem[] propItems = image.PropertyItems; 

MSDN中this article有更多的细节。

0

System.Drawing具有原始元数据支持。我们一直在努力为去年获得MetadataExtractor移植到.NET,结果可以在这里找到:

https://github.com/drewnoakes/metadata-extractor-dotnet

和的NuGet

Install-Package MetadataExtractor -Pre

元数据的范围解析是相当大的,并不适合在ImageResizer内。

相关问题