home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / graphics / tiff / unix / archive.z / archive / text0059.txt < prev    next >
Encoding:
Text File  |  1995-09-20  |  1.2 KB  |  32 lines

  1.     To:  tiff@sgihub.corp.sgi.com
  2.     Subject:  retreiving GrayResponseCurve and undefined tag info
  3.     Cc:  sam@giraffe.asd.sgi.com
  4.     Date: Fri, 23 Dec 1994 09:50:00 EST
  5.     From:  koz@bluegill.syracuse.sgi.com (Bob Kozdemba)
  6.  
  7.     Hi:
  8.     Is it possible to retreive the GrayResponseCurve array using libtiff ? I get
  9.     zeroes returned. Here are the code fragments. Any ideas ?
  10.  
  11. The short answer is no. GrayResponseCurve is a deprecated tag;
  12. the write should be using the Colorimetry tags defined in the
  13. TIFF 6.0 spec.  The library reads the tag and discards it to
  14. avoid generating a warning about an unknown tag.  You can easily
  15. add support back into your copy of the library.
  16.     
  17.     short grayResponseCurve[256];
  18.     
  19.     TIFFGetField(tif, TIFFTAG_GRAYRESPONSECURVE, grayResponseCurve);
  20.     
  21.     I also need to retreive 32 bytes of info at TAG 65535, which is undefined. I
  22.     noticed that 'tiffdump' works, but it looks like 'tiffdump' does not use
  23.     TIFFGetField().
  24.     
  25. The library only understands a compiled-in set of tags.  If you want
  26. the value of this tag you'll need to add it in.  Some day I'll get
  27. around to rewriting the directory handling to keep unknown tags around.
  28.  
  29.     Sam
  30.  
  31.  
  32.