[Image-SIG] Undocumented floating-point TIF support in PIL?
Fredrik Lundh
fredrik at pythonware.com
Wed Nov 16 20:55:56 CET 2005
W.T. Bridgman wrote:
> The PIL documentation claims that TIFF files are supported for "1",
> "L", "RGB", or "CMYK" data.
>
> I was examining the Tiff plug-in and did not find anything that
> suggested "F" was unsupported so I tried writing and reading a simple
> floating-point TIFF. It worked.
>
> Is this just a missing entry in the docs or does anyone know of
> potential gotchas should I start using this new found capability?
the documentation is outdated. in 1.1.5, the TIFF loader supports
the following modes:
"1"
"CMYK"
"F"
"I"
"I;16"
"I;16S"
"L"
"LA"
"LAB"
"P"
"PA"
"RGB"
"RGBA"
"RGBX"
"YCbCr"
(for a complete list of what TIFF pixel layouts that PIL can read, see the
OPEN_INFO mapping in the TiffImagePlugin).
</F>
More information about the Image-SIG
mailing list