2004.03.25 14:44 "[Tiff] Jpeg compressing a file", by Carl J. Collin
On Wed, Mar 24, 2004 at 05:25:51PM -0600, Carl J. Collin wrote:
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?
Am I undestand properly: you want just change tags and rewrite directory without changes in image?
What I want to do is take a TIFF file that is currently uncompressed and compress it
using the jpeg compression schema. I know this is sorta possible because tiffcp does it
but it creates a second file, I need to open a file, compress it, and close the file.
Is this possible?