[Image-SIG] Re: silent corruption of FillOrder: lsb-to-msb TIFF reads?

Fredrik Lundh fredrik@pythonware.com
Thu, 15 May 2003 20:33:39 +0200

Jeff Breidenbach wrote:

> I'm getting unusual results when reading a set of TIFF files.
> PIL reads the file without complaint, but appears to be silently
> corrupting the image. The following commands save out a bunch of
> colorful noise.
> >>> import Image
> >>> a = Image.open("foo.tif")
> >>> a.save("bar.bmp")
> Looking at the output, I suspect that PIL's TIFF reader
> is ignoring the FillOrder tag. Even more suspicious, when I
> convert the TIFF to  FillOrder: msb-to-lsb, no such corruption
> occurs.
> Any comments?

without looking at the actual file, it sure looks as if your analysis
is correct.

> Ideally, I'd love for PIL to be able to read this type of TIFF file,
> or at least have a better grasp of its own limitations. I've attached
> the TIFF characteristics below.

can you mail me a sample file (off list)

thanks /F