AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2010.05.11 19:46 "[Tiff] bmp2tiff questions", by Thomas Richter
2010.05.11 20:14 "Re: [Tiff] bmp2tiff questions", by
2010.05.12 16:56 "Re: [Tiff] bmp2tiff questions", by Bob Friesenhahn

2010.05.11 19:46 "[Tiff] bmp2tiff questions", by Thomas Richter

Hi folks,

just another question: I've just discovered a feature of bmp2tiff:

If I feed this program with a 555bmp file, that is, 16 bits/pixel input,

I get a tiff as output that looks invalid to me. Specifically, it does not bitpack the file correctly. Instead of packing five bits of red, green and blue next to each other as it should, the code simply writes out the bmp contents/samples without removing the "0" pad-bit bmp inserts to complete a 16 bit word.

Is this a bug? Or is tiff containing 5-5-5 samples defined with a
pad-bit? I don't see this anywhere in the specs.

Thanks,

        Thomas