枕头和EPS文件不好如何才能完美打开EPS文件?

2024-07-05 14:50:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我有这样一个EPS文件: https://gofile.io/d/Kv2cwo

在通过枕头转换为png时,我得到以下结果:

from PIL import Image
eps_image = Image.open("raw.eps")
eps_image.load(scale=10)
eps_image.save("png.png")

enter image description here

它是绝对光栅化的-因为PIL正在进行光栅化。 在Adobe Illustrator中转换时,我得到以下信息: enter image description here

那么如何在python中实现这一点呢

致以最良好的祝愿, 马丁


Tags: 文件fromhttpsioimageimportpilpng