AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

1993.12.07 23:21 "ExtraSamples", by Dan McCoy

I found a bug in tif_dirwrite.c in libtiff 3.3 as currently available on sgi.com.

As it exists, it refuses to actually write the ExtraSamples information into the tiff file.

The existing tif_dirwrite.c at 166 has the following:

        if (FieldSet(fields, FIELD_EXTRASAMPLES) && td->td_extrasamples)

It should be changed to:

        if (FieldSet(fields, FIELD_EXTRASAMPLES) && !td->td_extrasamples)

With this change, the ExtraSamples information correctly makes it into the output file.

Dan McCoy mccoy@pixar.com