PHP图像跟踪功能 [英] PHP image trace function
问题描述
可能重复:
将JPG(位图)转换为SVG(矢量)的源代码?
是否有现有的php库可以执行图片跟踪功能?如果没有,这将如何实现?是否有现有的库可以轻松移植到php?
Is there an existing php library that can do an image trace function? If not, how would this be accomplish-able? Is there an existing library that could be easily ported to php?
推荐答案
刚刚找到 this ,这是一个关于在Inkscape中跟踪位图的教程。你可能不得不在程序的内部挖掘能够用PHP连接它,但也许这可能会让你开始?
Just found this, which is a tutorial on tracing a bitmap in Inkscape. You might have to dig about in the internals of the program to be able to interface it in PHP, but perhaps that might get you started?
编辑:这在内部使用Potrace ,我怀疑在命令行工作。图像输入,SVG / PDF输出 - 在PHP中轻松连接。
this uses Potrace internally, which I suspect works at the command line. Image in, SVG/PDF out - easily interfaced in PHP.
这篇关于PHP图像跟踪功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!