2002.10.30 10:58 "Read tiff tiles jpeg compress image.", by Diana Szleper

2002.10.30 10:58 "Read tiff tiles jpeg compress image.", by Diana Szleper

Hi,

I have no problem to compress/decompres tiff strips compress whith jpeg. I'm trying to decompres tiff tiles (tag = 7) compress whith jpeg without success.

In the static function JPEGPreDecode I always have the error:

if (sp->cinfo.d.image_width != segment_width ||
    sp->cinfo.d.image_height != segment_height) {
    TIFFError(module, "Improper JPEG strip/tile size");
    return (0);

segment_width equal the image witdh (1024 for example) and sp->cinfo.d.image_width is the width of the tile (256 for example) The other test sp->cinfo.d.image_height != segment_height is correct: sp->cinfo.d.image_height = segment_height is correct = the tile length (256 in my case)

Is somebody known how to compress/decompress tiff tiles images with jpeg algo from tif_jpeg.c?

diana