:orphan:

.. _XPM-PIL:

XPM-PIL X11 Pixel Map
=====================

Extensions: ``.xpm``

*This is a copy from the Pillow docs.*


PIL reads X pixmap files (mode ``P``) with 256 colors or less.

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

**transparency**
    Transparency color index. This key is omitted if the image is not
    transparent.


