AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1999.11.12 17:54 "Error "PackBitsDecode : not enough data for scanline ..."", by Raphael MARC
1999.11.15 11:24 "Error "PackBitsDecode : not enough data for scanline ..."", by Raphael MARC

1999.11.15 11:24 "Error "PackBitsDecode : not enough data for scanline ..."", by Raphael MARC

Hello,

Using the TIFF library, when I read a small bilevel(a) TIFF image, the following messages are displayed in a dialog box
(and my program doesn't read correctly the image):
        PackBitsDecode: not enough data for scanline 0
        PackBitsDecode: not enough data for scanline 1
        etc.

(a) bitspersample=1, samplesperpixel=1

This happens only on small images: I'm testing my program on the same image which I'm rescaling. For instance,
at the beginning, its size is 200(width)*100. When I'm scaling down this image, my program runs correctly untill
width = 18. For width <=17, the error messages are displayed. And when I'm scaling up the image from 17 to 18, the
error messages are still displayed!

Here are 2 samples files:

My code is like:

................
buf = (unsigned char* )_TIFFmalloc(sizeLine);
for (row = 0; row < lenght; row++) {

        if (TIFFReadScanline(tif, buf, row, 0))   /* the error happens there */

                {
                ....................
                }

Any help appreciated.

Rapha�l

image-width-18.tif

image-width-17.tif