2004.07.26 10:07 "[Tiff] Is this possible by using LibTiff?", by Sachin Garg

2004.07.26 16:35 "Re: [Tiff] Is this possible by using LibTiff?", by David Christopher Asher

# 1. Is it possible to just store the Tiff Directory with all tags except-the-image-pixel-data, so that I can later easily recreate a Tiff with same characteristics as the original file?

I don't think exactly this functionality is included in LibTiff. I wouldn't advice this exact way of doing it, anyhow. Either

  1. the tags-except-image-pixel data stuff is fixed. In that case, hard-code it
  2. the tags-except-image-pixel data stuff is flexible. Perhaps there's a UI

Unless I am missing something, couldn't you simply write out a small, say, 1 pixel by 1-pixel image with the color table and any other tags. The only thing you would need to change/remember is the image dimensions or other size-related tags (if they are not fixed). Perhaps you could encode them in the filename if you have no other way of remembering them, like "IMAGENAME01234_1024_768.tiff" or something.

Dave