2014.01.05 00:59 "[Tiff] Walking through all tags in a directory?", by Larry Gritz

What's the recommended way for an app using libtiff to walk through every tag in the current image directory of the open file?

I know how to ask for particular tags by their IDs, but what I really want to do is iterate through all of them (and in particular to discover all the tag IDs of unregistered or nonstandard tags in the file). Is there a way to do this that doesn't require access to the internal data structures that aren't exposed publicly (and might be expected to change with future libtiff releases)?

--
Larry Gritz
lg@larrygritz.com