2004.03.24 23:25 "[Tiff] Jpeg compressing a file", by Carl Collin

2004.03.24 23:25 "[Tiff] Jpeg compressing a file", by Carl Collin

I am trying to (using 3.5.7) open a tiff which has no compression and compress using the JPEG compression algorithm. I have tried to view the code in tiffcp.c but it is convoluted, in trying to handle all kinds of possibilities. In using tiff apis previously, most things I have wanted to try ended up being easy. Can somebody point me in the right direction in terms of how I open a TIFF file, change the compression tags, and then rewrite the directory and close the tiff file?

Thanks,
Carl J. Collin

"Beware of bugs in the above code;
  I have only proved it correct, not tried
  it" - Donald Knuth.