将 PNG 图像转换为 SVG / 矢量
我们迫切希望转换图像,以便将其用作图像地图。我所尝试过的一切,确实都不能令人满意。我没有在非常高的分辨率下工作的经验。而且我不知道术语,也没有技能或资源来投资学习如何做到这一点,知道这里和互联网上的许多其他人有更多的经验。
我已经下载并使用了 Inkscape,但确实在兜圈子……
所以我想在这里问一下。
我所追求的类似于拉斐尔澳大利亚地图或大卫林奇,http://davidlynch。 org/js/maphilight/docs/demo_usa.html
没有多余的装饰,没有效果,只需在悬停时更改地图的状态颜色并在单击时保留该事件。
这就是我们所拥有的......
我们所拥有的是这样的地图。
我们丢失了纯灰色的原始文件。我留下了这个:(
无论如何,我们希望每个州(包括领土 ACT )都没有在上面的地图上标出,以粉红色 #ec008c 表示。悬停时
地图需要完美无缺!!还要求任何图像都必须是png 和透明 bg。
文本,如上图所示的 QLD,但不是完全必要的。
必须保持如上所述的精确大小。在 svg 坐标上必须非常准确,并且可以选择显示STATE 请给我指出正确的方向。
We are desperate to convert an image so that it can be used as an image map. Everything I have tried, really doesnt cut the mustard. I havent the experience to work at very high resolutions.. plus I dont know the terminology and neither have the skills or resources to invest in learning how to do this, knowing many others on here and the internet have far greater experience.
I have downloaded and played with Inkscape, but really am going round in circles...
So thought I would ask here.
What I am after is similar to Raphael Australia Map or David Lynchs, http://davidlynch.org/js/maphilight/docs/demo_usa.html
No frills, no effects, just change the state color of the map on hover and retain that event on click.
Here is what we have ...
What we have is a MAP like this.
We lost the original file, which was pure gray. I have this left :(
Anyway, we want it so that each state ( including the territory ACT ) not indicated on the above map, represented in pink #ec008c . On hover
Map needs to be FLAWLESS !! Also require that any imagery must be png and transparent bg.
Must remain exact size as above. Must be extremely accurate on svg coordinates, and optionally would like the STATE text to appear , like the QLD is shown on the image above, but not wholly necessary.
Can anyone point me in the right direction please.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您是否尝试过路径>?在 Inkscape 中跟踪位图?如果您使用这些设置,您应该能够获得不错的矢量化图像。
Have you tried Path > Trace Bitmap in Inkscape? If you play with the settings you should be able to get a decent vectorised image.
矢量化:
EPS:
http://dl.dropbox.com/u/13402937/Australia.eps
Adobe Illustrator:
http://dl.dropbox.com/u/13402937/澳大利亚.ai
Vectorised:
EPS:
http://dl.dropbox.com/u/13402937/Australia.eps
Adobe Illustrator:
http://dl.dropbox.com/u/13402937/Australia.ai
尝试使用这个工具,它的potrace部分可以在inkscape中跟踪像素图片,具有许多功能。 potrace 从命令行跟踪图片
try to use this tool, its the potrace part to trace pixelpictures in inkscape with many features. potrace traces pictures from commandline
我使用 https://vectormagic.com/ 获得了非凡的结果,可以在线试用。
I have obtained extraordinary results with https://vectormagic.com/ , which can be tried online.