EXIF format analysis and through XML processing
Raptor [Mental Studio] (Personal Column) (Blog)
Http://eental.mentsu.com
The conversion XML is approximately as follows: XML Version = "1.0" Encoding = "GB2312"?> EXIF EXIFID> ii byteorder> 0x002a Flag> 0xB count> 0x10e tag> 2 type> 0xB size> Value> entry> 0x10f tag> 2 type> 0x6 size> nikon value> entry> 0x110 tag> 2 type> 0x5 size> e775 value> entry> ... 0x8769 tag> 4 Type> 0x1 size> 0x0000011c value> entry> ifd> 0x2 count> 0x1 tag> 2 type> 0x4 size> r98 value> entry> 0 X2 tag> 7 type> 0x4 size> 0x30 0x31 0x30 0x30 value> 0x6 count> 0x103 tag> 3 type> 0x1 size> 0x0006 value> entry> ... ifd> TIFFHEADER> EXIFAPP1> With this XML can be easily processed, for example, use the XSL file below to convert this XML: <
XML Version = "1.0" encoding = "gb2312"?> "" ">" ">" ">> xsl: by> model = < / xsl: will> xsl: for-each> xsl: template> xsl: stylesheet> You can get the following results: Manufacturer = Nikon Model = E775 Whether it is increasing Tag still wants to change the language, just modify this XSL file, it can be implemented, without modifying the program code of the EXIF processing section, very flexible and convenient. [Mental Studio] Raptor
2004-4-3
.... References: [1] JEITA CP-3451 Exchangeable image file format for digital still cameras: Exif Version 2.2 JEITA (Japan Electronics & Information Technolog Industries Association) April, 2002. [2] Aldus Corporation TIFF Revision 6.0 Final - june 3,1992. [3] Gregory K.Wallace. The JPEG Still Picture Compression Standard.Communications of the ACM. April, 1991. [4] Eric Hamilton. JPEG File Interchange Format Version 1.02. C-Cube Microsystem. September 1, 1992. (Continued)