2010.03.19 12:12 "[Tiff] Reading metadata", by Magnus Bergman jamtli

2010.03.19 13:23 "Re: [Tiff] Reading metadata", by Olivier Paquet

On Fri, Mar 19, 2010 at 8:12 AM, Magnus Bergman jamtli <magnus.bergman@jamtli.com> wrote:

I'm writing an application which reads metadata from quite large amounts of image-files (a hundred or so at a time). This can be done in a generic way using either gdk-pixbuf (included in GTK+) or GNU libextractor. Both of these uses libtiff then reading metadata from tiff-images. The problem is that libtiff has no API to read the metadata without both reading and decoding the whole image. This is very significant for my application since

I think you either expressed your problem incorrectly or have the wrong information. Reading a TIFF's tags with libtiff does not require reading and decoding any image data, at least not for any tiff I've ever seen. You have to specifically request image data from the library with one of the TIFFRead... functions for it to be read from disk.

What exactly lead you to believe otherwise?

Olivier