代码拉取完成,页面将自动刷新
ExifLibrary is a .Net Standard library for editing Exif metadata contained in image files.
If you are using NuGet you can install the assembly with:
PM> Install-Package ExifLibNet
To read an image file and extract metadata:
var file = ImageFile.FromFile("path_to_image");
// the type of the ISO speed rating tag value is unsigned short
// see documentation for tag data types
var isoTag = file.Properties.Get<ExifUShort>(ExifTag.ISOSpeedRatings);
// the flash tag's value is an enum
var flashTag = file.Properties.Get<ExifEnumProperty<Flash>>(ExifTag.Flash);
// GPS latitude is a custom type with three rational values
// representing degrees/minutes/seconds of the latitude
var latTag = file.Properties.Get<GPSLatitudeLongitude>(ExifTag.GPSLatitude);
To add metadata:
var file = ImageFile.FromFile("path_to_image");
// note the explicit cast to ushort
file.Properties.Set(ExifTag.ISOSpeedRatings, <ushort>200);
To save the image with metadata:
file.Save("path_to_image");
Please visit: http://oozcitak.github.io/exiflibrary/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。