简体   繁体   English

将PNG图像转换为SVG / Vector

[英]Convert PNG image to SVG / Vector

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... 我已经下载并使用Inkscape玩了,但我真的要绕圈子...

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 我所追求的与Raphael Australia Map或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. 我们拥有的是像这样的MAP。 在此输入图像描述

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 . 无论如何,我们想要它,以便在上面的地图上没有显示每个州(包括领土ACT),用粉色#ec008c表示。 On hover 在悬停时

Map needs to be FLAWLESS !! 地图需要无懈可击! Also require that any imagery must be png and transparent bg. 还要求任何图像必须是png和透明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. 必须在svg坐标上非常准确,并且可选地希望显示STATE文本,如上图中显示的QLD,但不是完全必要的。

Can anyone point me in the right direction please. 任何人都可以指出我正确的方向。

Have you tried Path > Trace Bitmap in Inkscape? 您是否在Inkscape中尝试过Path> Trace Bitmap If you play with the settings you should be able to get a decent vectorised image. 如果您使用这些设置,您应该能够获得一个像样的矢量化图像。

我通过https://vectormagic.com/获得了非凡的成果,可以在线试用。

try to use this tool, its the potrace part to trace pixelpictures in inkscape with many features. 尝试使用这个工具,它的potrace部分用于跟踪具有许多功能的inkscape中的pixelpictures。 potrace traces pictures from commandline potrace从命令行追踪图片

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM