ExifTool Forum

ExifTool => The Image::ExifTool API => Topic started by: dschless on March 30, 2010, 11:47:28 PM

Title: Getting Tag Info
Post by: dschless on March 30, 2010, 11:47:28 PM
How can I lookup information for a given tag?  Specifically I am trying to retrieve if the tag is writeable, which groups it belongs to and its flags (as specified in TagInfoXML Write).  I am hoping there is an existing call which will return this information rather than having to write a loop to search all of the tables.

Thanks,
Dan Schless
Title: Re: Getting Tag Info
Post by: Phil Harvey on March 31, 2010, 07:12:31 AM
Hi Dan,<br><br>

In the past, people have found that parsing lib/Image/TagNames.pod gives them what they want.  Or you could go through the TagInfoXML module to get the XML output.  It would be best to avoid parsing the tables since the implementation details of these tables are not part of the public interface and are therefore subject to change in future versions.

- Phil