I have tried to find a solution for converting a .WMF image file to .png, unfortunately I have not been able to render the .wmf file in pyhton (on a windows machine). Do anyone have a solution for this?
One of the simplest examples I have tried out is the following (Python 3.6):
from PIL import Image
Image.open("test.wmf").save("test.png")
But gets the error:
File "C:\Python36\lib\site-packages\PIL\WmfImagePlugin.py", line 58, in load
Image.core.drawwmf(im.fp.read(), im.size, self.bbox),
OSError: cannot render metafile
Thank you in advance