Merge pull request #6338 from radarhere/emf

Added EMF and SUN to list of supported file formats
This commit is contained in:
Hugo van Kemenade 2022-05-28 08:11:43 +02:00 committed by GitHub
commit 9c25fc6042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1233,6 +1233,11 @@ PSD
Pillow identifies and reads PSD files written by Adobe Photoshop 2.5 and 3.0. Pillow identifies and reads PSD files written by Adobe Photoshop 2.5 and 3.0.
SUN
^^^
Pillow identifies and reads Sun raster files.
WAL WAL
^^^ ^^^
@ -1247,13 +1252,13 @@ this format.
By default, a Quake2 standard palette is attached to the texture. To override By default, a Quake2 standard palette is attached to the texture. To override
the palette, use the putpalette method. 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 On Windows, it can read WMF and EMF files. By default, it will load the image
dpi. To load it at another resolution: at 72 dpi. To load it at another resolution:
.. code-block:: python .. code-block:: python
@ -1263,7 +1268,8 @@ dpi. To load it at another resolution:
im.load(dpi=144) im.load(dpi=144)
To add other read or write support, use 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 .. code-block:: python