:orphan:

.. _BMP-PIL:

BMP-PIL Windows Bitmap
======================

Extensions: ``.bmp``

*This is a copy from the Pillow docs.*


PIL reads and writes Windows and OS/2 BMP files containing ``1``, ``L``, ``P``,
or ``RGB`` data. 16-colour images are read as ``P`` images. Run-length encoding
is not supported.

The :py:meth:`~PIL.Image.Image.write` method sets the following
:py:attr:`~PIL.Image.Image.info` properties:

**compression**
    Set to ``bmp_rle`` if the file is run-length encoded.


