2005.10.12 12:11 "[Tiff] how to update tiled YCbCr JPEG image?", by Шебеко Евгений

2005.10.13 17:39 "Re[2]: [Tiff] how to update tiled YCbCr JPEG image?", by Шебеко Евгений

If you're able to reproduce your problem in a suitable small file (like 1 megabyte at most), you can send it to my personal e-mail address, together with a good description of what you think the image should look like, and I'll try and investigate the file and see if I can confirm.

It's really hard to find small tiled image with JPEG YCbCr compression and that have JpegTables tag :)

But I try same with tiled image with JPEG YCbCr compression but without JpegTables tag in source file - it work fine.

Then I try to update striped image with JPEG YCbCr compression and JpegTables tag but it not work at all. I have an assert error at:

tif_jpeg.c:1248 assert(!sp->cinfo.comm.is_decompressor);

It is the code that I use:

int main(int argc,char** argv)
{

    char buf[12288];
    memset(buf,0,sizeof(buf));
    TIFF* tif=TIFFOpen("2.tif","a");
    TIFFSetDirectory(tif,0);

    TIFFWriteEncodedStrip(tif,0,buf,sizeof(buf));

    TIFFClose(tif);
    return 0;
}

and image in attachment. Image I get from libtiff samples images quad-jpeg.tif