Recommendations for converting raster images to vector graphics

拜拜、爱过 提交于 2020-01-23 02:00:07

问题


If a person is looking to batch convert a large number of raster images into vector graphics, are there any tools out there that do that well?

For an example, think of just about any diagram that has standard shapes (ellipses, rectangles) and text.


回答1:


Inkscape uses the Potrace engine to trace raster graphics. You usually have to play with it a bit to get useful output, but it does surprisingly well and is easy to use.




回答2:


Maybe the desktop edition (not free) of Vector Magic could help you out.

Link: http://vectormagic.com/




回答3:


I'll enthusiastically second the nomination of Vector Magic.

I recently did some raster to vector conversion work with Adobe Live Trace (Photoshop CS2). It required quite a bit of tuning to get frmo horrible to acceptable.

I tried exactly the same conversion with Vector Magic (used the online version, the first two are free), the configuration questions were easy, the pallete editing was simple and intuitive, and the results were excellent, extremely clean, on the first try. Clearly they have sorted out the issues in de-noising and de-anti-aliasing to produce clean vectors. (In contrast to Adobe which takes noise tones and alias tones and decides to make lots of tweaky little vectors out of them.)

Another alternative is Corel PowerTRACE, though I have no experience with it.




回答4:


Imagetracer is a free and open source (Public Domain) library and application which might be useful to batch convert files. Disclaimer: I made these.

Get ImageTracer.jar from

https://github.com/jankovicsandras/imagetracerjava

and then the basic usage is:

java -jar ImageTracer.jar smiley.png

This can be automated with standard CLI batch processing, for example with bash:

for file in *.png; do java -jar ImageTracer.jar "$file" outfilename "${file/%ext/svg}"; done

This should create SVGs from all PNGs in the current folder.



来源:https://stackoverflow.com/questions/188680/recommendations-for-converting-raster-images-to-vector-graphics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!