AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

2005.05.04 08:47 "[Tiff] Is this possible?", by Katrina Maramba

I dont see any reason why this wouldn't work but maybe you guys know something I dont.

Is it possible to pass just the image data (without the header, directory count, and IFD's) to the API TIFFReadRGBAImage and get it correctly parsed?

I had the correct values for the TIFF structure as when I passed the whole image to the API EXCEPT:

  1. tif->tif_clientdata points only to the image data (without the header, directory count, and IFD's) not the entire image/file
  2. tif->tif_readproc
  3. tif->tif_seekproc

Everything else (all the other elements) in the TIFF structure are the same as when I passed the whole image. (I apologize for repeating this information, but I just want to make sure that point is clear)

Please give your comments/ advice. Thanks so much!