Are there 开发者_如何学JAVAany good .net libraries I can use to read and write tags, people tags, date take, et cetera that are compatible with Windows Live Photo Gallery?
FotoFly available on CodePlex is a C# library and it supports Windows Live Faces, GPS, Keywords, etc.. just as you are asking. See http://fotofly.codeplex.com/
Just an example using FotoFly to do what you want:
JpgPhoto photo = new JpgPhoto(@"c:\temp\file.jpg");
photo.ReadMetadata();
photo.Metadata.RegionInfo.Regions.Clear();
XmpRegion xmp = new XmpRegion();
xmp.PersonDisplayName = "esac";
xmp.RectangleString = "0.11, 0.25, 0.37, 0.49";
photo.Metadata.RegionInfo.Regions.Add(xmp);
photo.WriteMetadata();
It also supports Exif, Iptc, Xmp, GPS, etc..
WPF has BitmapMetadata which supports updating the EXIF information which I assume Windows Live Photo Gallery uses.
There is another question which has details about both BitmapMetadata and the metadata used by WLPG.
I don't know of any library, but I was reminded of this tool for converting Picasa face tags into the Windows Live Photo Gallery format.
I'm guessing the author of that tool is shelling out to run Exif Tool. Maybe it could point to a possible way of getting the job done.
Try taglib#, the metadata for pictures are right now added see supported matrix.
精彩评论