M Mankush Client Регистрация 31.10.2011 Сообщения 189 Благодарностей 17 Баллы 28 15.08.2014 #1 Can zenno read description tags of jpg ? Вложения description.jpg 25,6 КБ Просмотры: 380
rostonix Известная личность Регистрация 23.12.2011 Сообщения 29 067 Благодарностей 5 708 Баллы 113 15.08.2014 #2 There are no in-built tools for it. Google for C# solutions
M Mankush Client Регистрация 31.10.2011 Сообщения 189 Благодарностей 17 Баллы 28 15.08.2014 #3 I have tried - after reading this page (http://stackoverflow.com/questions/2280948/reading-data-metadata-from-jpeg-xmp-or-exif-in-c-sharp) Seems that I should be looking for exif. Tried this code snippet: publicstringGetDate(FileInfo f){FileStream fs =newFileStream(f.FullName,FileMode.Open,FileAccess.Read,FileShare.Read);BitmapSource img =BitmapFrame.Create(fs);BitmapMetadata md =(BitmapMetadata)img.Metadata;string date = md.DateTaken;Console.WriteLine(date);return date;} Basically I get errors. Tried this page: http://www.holmessoft.co.uk/homepage/Software/ExifUsage.htm It is written it has a library - maybe I should download some parsing library of some sort? I have not idea how to approach this - could you give me a direction?
I have tried - after reading this page (http://stackoverflow.com/questions/2280948/reading-data-metadata-from-jpeg-xmp-or-exif-in-c-sharp) Seems that I should be looking for exif. Tried this code snippet: publicstringGetDate(FileInfo f){FileStream fs =newFileStream(f.FullName,FileMode.Open,FileAccess.Read,FileShare.Read);BitmapSource img =BitmapFrame.Create(fs);BitmapMetadata md =(BitmapMetadata)img.Metadata;string date = md.DateTaken;Console.WriteLine(date);return date;} Basically I get errors. Tried this page: http://www.holmessoft.co.uk/homepage/Software/ExifUsage.htm It is written it has a library - maybe I should download some parsing library of some sort? I have not idea how to approach this - could you give me a direction?