我试图找到将.WMF图像文件转换为.png的解决方案,但不幸的是,我无法在pyhton(windows计算机上)中呈现.WMF文件。有人能解决这个问题吗
我尝试过的最简单的示例之一是以下(Python 3.6):
from PIL import Image
Image.open("test.wmf").save("test.png")
但是得到了错误:
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
先谢谢你
我很抱歉这个问题的“重复”。我使用ImageMagick解决了我的问题(没有解决原始问题):
Solution from similar topic - https://stackoverflow.com/a/46058963/13767408
相关问题 更多 >
编程相关推荐