From fd7bfbe86bffa8a105f8234a1dbdb95e48580cd9 Mon Sep 17 00:00:00 2001 From: Steve Johnson Date: Sun, 6 Oct 2013 22:41:25 -0700 Subject: [PATCH] Update TIFF compression notes --- docs/handbook/image-file-formats.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst index 1741b073a..8789e115a 100644 --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -241,8 +241,11 @@ TIFF PIL reads and writes TIFF files. It can read both striped and tiled images, pixel and plane interleaved multi-band images, and either uncompressed, or -Packbits, LZW, or JPEG compressed images. In the current version, PIL always -writes uncompressed TIFF files. +Packbits, LZW, or JPEG compressed images. + +If you have libtiff and its headers installed, PIL can read and write many more +kinds of compressed TIFF files. If not, PIL will always write uncompressed +files. The :py:meth:`~PIL.Image.Image.open` method sets the following :py:attr:`~PIL.Image.Image.info` properties: