Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added EMF and SUN to list of supported file formats #6338

Merged
merged 1 commit into from
May 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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