Skip to content

Commit 455ffff

Browse files
committed
Update documentation for 4-bit RLE decoder
1 parent c2e9c66 commit 455ffff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/handbook/image-file-formats.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ BMP
4545
^^^
4646

4747
Pillow reads and writes Windows and OS/2 BMP files containing ``1``, ``L``, ``P``,
48-
or ``RGB`` data. 16-colour images are read as ``P`` images. 4-bit run-length encoding
49-
is not supported. Support for reading 8-bit run-length encoding was added in Pillow
50-
9.1.0.
48+
or ``RGB`` data. 16-colour images are read as ``P`` images.
49+
Support for reading 8-bit run-length encoding was added in Pillow 9.1.0.
50+
Support for reading 4-bit run-length encoding was added in Pillow 9.3.0.
5151

5252
Opening
5353
~~~~~~~
@@ -56,7 +56,8 @@ The :py:meth:`~PIL.Image.open` method sets the following
5656
:py:attr:`~PIL.Image.Image.info` properties:
5757

5858
**compression**
59-
Set to ``bmp_rle`` if the file is run-length encoded.
59+
Set to ``bmp_rle8`` if the file is a 256-color run-length encoded image.
60+
Set to ``bmp_rle4`` if the file is a 16-color run-length encoded image.
6061

6162
DDS
6263
^^^

0 commit comments

Comments
 (0)