且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用python将PNG转换为SVG

更新时间:2023-01-18 13:46:49

您将需要运行外部程序来进行图像跟踪.一个流行的程序是potrace.这就是Inkscape用于执行任务的东西.

You will need to run an external program to do the image tracing. A popular program is potrace. It is what Inkscape uses to perform the task.

有一些python绑定:

There are some python bindings for it:

https://pypi.python.org/pypi/pypotrace