AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.10.14 12:59 "[Tiff] SamplesPerPixel is 0 when loading image", by Marcel Wiesweg
2006.10.14 13:29 "Re: [Tiff] SamplesPerPixel is 0 when loading image", by Anurag Singh
2006.10.14 14:53 "Re: [Tiff] SamplesPerPixel is 0 when loading image", by Anurag Singh
2006.10.14 13:46 "Re: [Tiff] SamplesPerPixel is 0 when loading image", by Toby Thain
2006.10.14 21:22 "Re: [Tiff] SamplesPerPixel is 0 when loading image", by Toby Thain
2006.10.14 22:36 "Re: [Tiff] SamplesPerPixel is 0 when loading image", by Joris
2006.10.14 22:42 "Re: [Tiff] SamplesPerPixel is 0 when loading image", by Toby Thain
2006.10.14 22:56 "Re: [Tiff] SamplesPerPixel is 0 when loading image", by Joris
2006.10.14 17:52 "Re: [Tiff] SamplesPerPixel is 0 when loading image", by Joris
2006.10.15 15:18 "Re: [Tiff] SamplesPerPixel is 0 when loading image", by Gilles Caulier
2006.10.17 01:48 "Re: [Tiff] SamplesPerPixel is 0 when loading image", by Joris

2006.10.14 12:59 "[Tiff] SamplesPerPixel is 0 when loading image", by Marcel Wiesweg

Hi,

for the application digiKam (www.digikam.org) we are using libtiff in our image loader. A while ago we received a bug report from a user that opening certain 16-bit TIFF images failed. The report was later on confirmed by another user.

Strangely, on other systems (on most systems, including mine) the test image loads without any problems.

We investigated that the problem is that after calling

    TIFFGetFieldDefaulted(tif, TIFFTAG_SAMPLESPERPIXEL, &samples_per_pixel);

the value of samples_per_pixel is "0" on the affected machines, "3" on all others. This has been tested with different versions of libtiff.

The full story can be found here: http://bugs.kde.org/show_bug.cgi?id=125916

The test image is http://amigos.amiga.hu/dudeeg/digikam_tiff/IMG_4224-01.tif

The source of out TIFF loader can be found at http://websvn.kde.org/trunk/extragear/graphics/digikam/libs/dimg/loaders/tiffloader.cpp?view=auto

Have you any idea what to do about this?

Thank you

Marcel