pillow-wmf
Open Windows Metafiles (WMF) and Enhanced Metafiles (EMF) with Pillow.
pip install pillow-wmf
from PIL import Image
import pillow_wmf # registers the WMF and EMF loader
with Image.open("drawing.wmf") as image:
image.load(size=(640, 480))
image.save("drawing.png")
Omit the load() call to use the default size. An EMF is fitted to the
requested size through its picture frame, as PlayEnhMetaFile does, and by
default is drawn at the frame's size in its reference-device pixels. EMF+
(GDI+) drawing is not rendered; files with a GDI fallback draw that instead.
Records that cannot yet be drawn exactly raise rather than produce partial art.
License
Metadata
Release files for pillow-wmf 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pillow_wmf-0.3.0.tar.gz | 347.4 kB | Without provenance | Details for pillow_wmf-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pillow_wmf-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pillow_wmf-0.3.0-py3-none-any.whl |
Total release size: 740.6 kB
Release files / pillow_wmf-0.3.0.tar.gz
| Download URL | pillow_wmf-0.3.0.tar.gz |
|---|---|
| Size | 347.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
179e07ae0596eba8c7f7d73869dae7bf549b0286333b2f8fd9918f2de679dad9
|
|
BLAKE2b-256 checksum How to use checksums |
f5765d65bd3c354f8610ad2890601d621d248b5d448b20c5bf0e77e20a76786f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / pillow_wmf-0.3.0-py3-none-any.whl
| Download URL | pillow_wmf-0.3.0-py3-none-any.whl |
|---|---|
| Size | 393.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efe36b5882b6be479cf131a00be3eb3e9761b6881a79438074a62b92a6f0180c
|
|
BLAKE2b-256 checksum How to use checksums |
f8b962523b68a58b38850123031a8e39af6aee20228c260dccd1db5602cf88d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for pillow-wmf 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.