Getting Tag Info

Started by dschless, March 30, 2010, 11:47:28 PM

Previous topic - Next topic

dschless

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

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).