Skip to main content

Windows-only EMF to PNG converter using Win32 GDI

Project description

EMF to PNG Converter (Windows)

Windows-only Python utility to convert EMF (Enhanced Metafile) files to PNG using native Win32 GDI rendering.

Requirements

  • Windows
  • Python 3.8+
  • Dependencies: pillow, pywin32

Install: pip install pillow pywin32

Files

main.py — EMF to PNG converter implementation

Basic Usage

from main import EMFToPNGConverter

conv = EMFToPNGConverter() conv.emf_file_to_png_file( "sample/input.emf", "output/output.png" )

Features

  • Accurate EMF rendering via Windows GDI
  • DPI-aware output (default: 300)
  • File-based and in-memory conversion
  • Base64 and data-URI helpers

Limitations

  • Windows only
  • White background only
  • Requires desktop GDI session

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emf_to_png_convertor-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

emf_to_png_convertor-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file emf_to_png_convertor-0.1.0.tar.gz.

File metadata

  • Download URL: emf_to_png_convertor-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for emf_to_png_convertor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 035bdfd0b8e1d45794a880575d1a90fcfa3ea95d1252f3bb33d2c24e9af29434
MD5 c556f943b22d3a141eb867105b10740c
BLAKE2b-256 7a5a433d5ddfad12f759514b79923d50bfae40c577ca154727c689d61fd087e6

See more details on using hashes here.

File details

Details for the file emf_to_png_convertor-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for emf_to_png_convertor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21f4cd9d3f2816fbfe90389fa09458328ab644cda308ac5ae064042ebdc590cd
MD5 e8b4ab8a03c3e8df6ccf53ce6af11ea9
BLAKE2b-256 b106f4bd5f47887844ac7e7a674fa6222b8949a1387e17bd633f1af6f7d6b78a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page