Added the ability to extract metadata from images which don't contain the EXIF sub IFD, thanks to an issue raised in workspaces by Charlie Hess.Refactored to store tag data in separate dictionaries for each IFD.Fixed an exception when reading images containing tags without datatypes.Added conditional compilation options for Windows Store app compatibility, thanks to a comment from _dieQueeQ.Changed thumbnail padding detection code to accept 0x00 as well as 0xFF as padding bytes, thanks to a comment from Cruiser77.MessageBox.Show( this, string.Format( " The picture was taken on array (instead of double), thanks to a comment from Member 10226163. Do whatever is required with the extracted information If (reader.GetTagValue(ExifTags.DateTimeDigitized, Extract the tag data using the ExifTags enumeration Instantiate the reader using (ExifReader reader = new ExifReader( C:\temp\testImage.jpg")) Just add a reference to ExifLib.dll, and you're good to go! An example follows: Using the CodeĮxifLib is very simple, with only one class and one enum in the namespace. ExifLib goes back to the JPEG/TIFF standard itself, and only reads the essentials, using little more than the file input classes in System.IO. NET classes were just too slow for the job. While this does the job, I often found myself processing thousands of images at a time, and the. NET Exif implementations I've seen, I was using the PropertyItem class located in. I've been using a simple command line application to move my photos into subdirectories based on the date on which they were created. Download source and demo project - 18.4 KBĮxifLib simply reads Exif tags (i.e., camhera model, GPS data, date picture taken, shutter speed etc.) from JPEG files, without the overhead introduced by using the GDI+ classes located in, and with less lines of code for the developer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |