illustrator自动映射到图像映射?或者有更好的方法吗?
我有一个矢量插画文件,其中加利福尼亚州的所有县作为不同的路径。我需要将这些县链接到其他在线页面。有没有办法从这个文件自动生成 HTML 图像映射? illustrator 提供了导出为 jpg 的功能,该功能具有多边形图像贴图形状的选项,但它不起作用。
或者,您对这些天图像映射的使用有什么看法吗?我是否应该以另一种方式处理这个问题?
是的,我知道我可以在闪存中做到这一点,但我想避免这种情况。
谢谢!
I have a vector illustrator file with all the counties of California as distinct paths. I need to have these counties be links to other pages online. is there a way to automatically generate an HTML imagemap from this file? illustrator provides an export as a jpg function that has options for polygonal imagemap shapes, but it isn't working.
alternatively, do you have an opinion about the usage these days of imagemaps at all and whether I should approach this another way?
yes, I know I could do this in flash but I want to avoid that.
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用“属性”面板在每个路径上设置链接,然后使用“保存为 Web 和设备”保存为 HTML 或 HTML+图像 - 这会在 HTML 文件中创建图像映射。
You can use the Attributes panel to set a link on each path, and then use Save for Web and Devices to save as HTML or HTML+Image -- that creates an imagemap in the HTML file.
除了 LHMathies 答案之外,请注意,Illustrator 中的路径不能是复合路径才能使用“多边形”形状。复合路径的
HTML
输出将生成“矩形”形状。要将复合路径转换为简单路径,请右键单击该路径并选择释放复合路径。
In addition to LHMathies answer please note that the path in Illustrator must not be a compound path in order to use the "Polygon" shape. The
HTML
output of a Compound Path will result in a "rectangle" shape.To convert a compound path to a simple path right click the path and select Release Compound Path.
啊,我一直在寻找这个解决方案,感谢上面 LHMathies 的回答和 ryandoss 的提示,我制定了一个完整的迷你教程,我把它放在这个 其他SO线程。
我能够在短短几分钟内从 Photoshop 文件创建图像映射。
Ah, I was looking for this very solution, and thanks to LHMathies' answer above, and ryandoss's tips, I worked out a complete mini-tutorial, which I put in this other SO thread.
I was able to create an imagemap from a Photoshop file in just a few minutes.