1996.12.18 10:42 "Problems with libtiff v3.4", by Benoit Chausserie-Lapree

1996.12.18 10:42 "Problems with libtiff v3.4", by Benoit Chausserie-Lapree

Hello,

I am using the TIFF library (libtiff, version 3.4) on a SUN station: Sun4u/168 Mhz, Solaris 2.5.2.

With libtiff I cannot read TIFF files crated on a DEC-ALPHA station:

- the characteristics of the TIFF files are the following:

    Header: it specifies the 'II' code (little endian: LSB first)
    ImageWidth (tag code = 100 hex) = 17,
    ImageLength (tag code = 101 hex) = 17,
    BitsPerSample (tag code = 102 hex) = 16 (2 bytes per pixel)
    StripOffsets (tag code = 111 hex) = offset of the strip in the file,
    SamplesPerPixel (tag code = 115 hex) = 1 (1 component per pixel)
    StripByteCount (tag code = 117 hex) = 578

- when reading the value of each pixel of the image on my SUN station with the libtiff functions (with TIFFReadRawStrip), those are always interpreted LSB-MSB and not MSB-LSB as they should on the SUN ;

- the tag values are correctly interpreted (e.g. with TIFFGetFied).

Where is the problem?

Thank you in advance for your response,

Best Regards

Benoit Chausserie-Lapree,

------------------------------------------------------------------------------
Benoit Chausserie-Lapree
CNES - CT/SH/QTIS/ST
BPi 811
18 Av. Edouard Belin
31055 Toulouse Cedex

Tel 05 61 28 23 49
E-mail Benoit.Chausserie-Lapree@cst.cnes.fr