python 如何读取wmf文件格式另存为svg或png
我有一个wmf的公式文件,可以导入word显示数学公式,我该如何将其转换为svg或者png
1.zip
上面是图片链接
在Windows上,它可以读取WMF文件。默认情况下,它将以72 dpi的速度加载图像。要以其他分辨率加载:
from PIL import Image
with Image.open("drawing.wmf") as im:
im.load(dpi=144)
pip install Pillow
from PIL import Image
Image.open("xxx.wmf").save("xxx.png")