Skip to content

Commit

Permalink
Merge pull request #6338 from radarhere/emf
Browse files Browse the repository at this point in the history
Added EMF and SUN to list of supported file formats
  • Loading branch information
hugovk committed May 28, 2022
2 parents 8b84e4c + c8529b6 commit 9c25fc6
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions docs/handbook/image-file-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,11 @@ PSD
Pillow identifies and reads PSD files written by Adobe Photoshop 2.5 and 3.0.


SUN
^^^

Pillow identifies and reads Sun raster files.

WAL
^^^

Expand All @@ -1247,13 +1252,13 @@ this format.
By default, a Quake2 standard palette is attached to the texture. To override
the palette, use the putpalette method.

WMF
^^^
WMF, EMF
^^^^^^^^

Pillow can identify WMF files.
Pillow can identify WMF and EMF files.

On Windows, it can read WMF files. By default, it will load the image at 72
dpi. To load it at another resolution:
On Windows, it can read WMF and EMF files. By default, it will load the image
at 72 dpi. To load it at another resolution:

.. code-block:: python
Expand All @@ -1263,7 +1268,8 @@ dpi. To load it at another resolution:
im.load(dpi=144)
To add other read or write support, use
:py:func:`PIL.WmfImagePlugin.register_handler` to register a WMF handler.
:py:func:`PIL.WmfImagePlugin.register_handler` to register a WMF and EMF
handler.

.. code-block:: python
Expand Down

0 comments on commit 9c25fc6

Please sign in to comment.