From: http://renaud91.free.fr/MetaDataExtractor/
Last Update: 22 mai 2008
Meta data extractor in C # What is it?
Metadataextractor is a program/library that let you extract the metadata from your pictures. Your JPG files contain a lot of interesting information (meta data) like:
- The date
- The setings, Flash, exposure time, program used...
- And more
An example of how to use the librairy is available inCom. Run. CSClass. This code is inside the source release.
An other example is also available, since version 2.3.0c,Com. simplerun. CS.
Changes in 2.4.0a (30 juin 2008 ):
- Changed back dispose call to close call since dispose does not always close stream.
- Added some close where it was needed (thanks to X Bühlmann)
- Added some canon tags (thanks to X B 'hlmann)
Changes in 2.4.0 (22 mai 2008 ):
- One big change in this version is the way resources are handled. I was fed up with the C #. ResourcesThat does not work well.
So now, a resource file is a simple TXT file that can be found in the resource folder.
You can translate them if you want and add them to the project. simply create a directory (for example resource "FR) and put the file in it. do not forget to make a right click and add to project as embeded resource.
The behaviour is as follow: If resource is in the langage folder, then it will be used, if not it will use the default resource file (the one at the root of the Resource Directory ).
With this system there shocould not be any more error regarding resource file (I hope ...).
-
- Impacted change from beta version of Drew, so this version can read metadata from raw files (*. raw ,*. CR2 ,*. crW ). note that this does not work with all raw format (it works for me with the 5D raw, but not with the 10d raw)
- Changed the default namespaceMetadataextractor(InsteadCom).
-
- Corrected the bug found by Timothy regarding the getfocalplaneyresolutiondescription in exifdirectory.
-
- Corrected a bug where some date may not be parsed correcly.
-
- Project is compiled for. NET 2.0 but is to be used with Visual Studio Free Edition2008. It is fully compatible with 3.0 and 3.5. Net version
-
- Added a new XML output format (use asxml2 instead of asxml). I use this version and found it more practical.
-
- Changed the API in order to be more object
-
- Added a few support for trace and debug (usingSystem. Diagnostics)
Changes in 2.3.0g (18 mai 2006 ):
- Changed the method inittagmap in all directory object. this method will now use introspection in order to discover tags. with this system, adding a tag is very simple, you just need to add the attribute in the Directory class and the linked label in the resource file.
- Change resourcebundle default lookup path for resource files.
For those who need to recompile the project, and if you ever change the default namespace property of your project:
Do not forget to change the default_name_space value of the resourcebundle class:
If you forget, then all resources will not be found, since. Net 2, adds the default namespace property to the XXX. Resources files.
Changes in 2.3.0f (17 then l 2006 ):
- Corrected a strange character problem in some Nikon firmware version tag (thanks to Eric)
- If XML output is used, all values will be trimed now.
Changes in 2.3.0e (06 April 2006 ):
- Corrected the misspelling of Fujitsu mdirectory
- Added a simple XSLT writen by Eric (thanks to him ).
Changes in 2.3.0d (31 March 2006 ):
- Corrected all bundle missing/misspelling key problem using a test class (testallkeywords. CS)
- Changed the text writer in order to use Unicode (thanks to Lytton Liou again)
- Corrected a double key in on of the Directory class.
- Added an optionDosubAnd changed the lauch process for the EXE file.
Changes in 2.3.0c (30 March 2006 ):
- Wrote centre instead of center in Nikon file (thanks to Lytton Liou)
- Added the com. simplerun. CS examples.
Changes in 2.3.0b (19 March 2006 ):
- Wrote red_yey_direction ction instead of red_eye_direction ction in commons.txt file (thanks to Jeppe H ø iby)
Changes in 2.3.0a (12 March 2006 ):
- Forgot a tag in Nikon Resources file (thanks to Jeppe H ø iby)
- Very important: Changes were made to the XML output
- Added a DTD and an XML sample file
Changes in 2.3.0 (05 March 2006 ):
- Updated from the 2.3.0 Java version (see http://www.drewnoakes.com/code/exif/ web site for details)
- AddedAsxmlOption. If someone is good in XSL, He may send me its own, I will add it into the next release.
- Very important: This release is based on. NET2.0And may not work with. NET 1.0 or 1.1
- For those who wowould like to recompile or change the code, do not forget that visualstudio 2005 for CSHARP is free in its express edition. simply go to Microsoft Web site and you can download it and use it for free.
Changes in 2.2.2d (second edition ):
- I forgot to uncommant the line that printed the output in the executable file, so I rebuild it, sorry, I have two left hands somtimes.
I did not change the version for that.
- Corrected a bug with stringarray, in fact all data that was treated as an array of string were showned as one string that was the first element in the array. for example keywords for IPTC tag. thanks to Graziano tona and Don Kim who found this bug almost at the same time :-).
Changes in 2.2.2c:
- Changed the tag_white_balance value (thanks to Peter hiemenz)
- Added some new values into the EXIF directory (delimiter, delimiter, tag_gain_control tag_contrast, tag_saturation, tag_sharpness, delimiter, tag_image_unique_id) (thanks to Peter hiemenz)
- Changed allStatic readonlyIntoConst, This allow the useSwichInsteadIfelse. It shoshould also speed up the program
Changes in 2.2.2b:
- The file acces mode for aspx user is readonly now (thanks to Ryan Patridge)
- Added support for Windows properties (tiltle, author, comments...) (thanks to Ryan Patridge)
- Changed the readstring behaviour (removed spaces)
You can find more information on this site http://www.drewnoakes.com/code/exif/
There is only the C # version on my site, the version is almost the same as the Java One made by Drew Noakes
If you are interested in a C ++ version one is available on the Andreas huggel web site
The C # version is like the Java One, means free to use and change. Do not forget version 2.3.x are for. net2.0Minimum.
- Download the binary (v2.4.0a): Binary
- Download source code (v2.4.0a): Source
- Download the binary (v2.4.0a): Assembly
Old Version (for visual studion 2003 and less but using. NET 2.0)
- Download the binary (v2.3.0g): Binary
- Download source code (v2.3.0g): Source
- Download the binary (v2.3.0g): Assembly
Old Version (for. NET 1.0 and 1.1)
- Download the binary (v2.2.2d): Binary
- Download source code (v2.2.2d): Source
- Download the binary (v2.2.2d): Assembly