Skip to main content

pillow-wmf

A Windows Metafile reader/writer/renderer for Pillow.

Like in the old Windows days, a GDI backend draws graphics and can also record actions to a Windows Metafile. Rasterizing one of these WMFs is just a matter of playing it back, which produces a Pillow Image.

Here's how you load one:

from PIL import Image
import pillow_wmf  # registers the WMF loader ahead of Pillow's built-in stub

with Image.open("drawing.wmf") as image:
    image.load(size=(640, 480))
    image.save("drawing.png")

License

pillow-wmf is WTFPL with one additional clause:

  1. Don't blame me.

Fonts have their own licenses, rip them out if you don't want to comply:

Release files for pillow-wmf 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pillow-wmf 0.1.0
File Size Uploaded
pillow_wmf-0.1.0.tar.gz 201.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pillow-wmf 0.1.0
File Interpreter ABI Platform
pillow_wmf-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 430.4 kB

Release files / pillow_wmf-0.1.0.tar.gz

Download URL pillow_wmf-0.1.0.tar.gz
Size 201.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e6248bc15b2bdff03e0cd2ef4e85edf6d93b894bde5f9292f606f9447004b007
BLAKE2b-256 checksum
How to use checksums
d00e381ac36799f619674b34e629f04f60a808b743441da25b2120011dc49033
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / pillow_wmf-0.1.0-py3-none-any.whl

Download URL pillow_wmf-0.1.0-py3-none-any.whl
Size 228.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7a3570639e63c032ff81a8ed80c64662f247dd31004a7c31908325e61e7a978
BLAKE2b-256 checksum
How to use checksums
b747a52516ff90fb37eca85acfb92bec87d2bc642e53de27f4f65dde28b8c247
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page