当我在 Illustrator 中使用透明将图像保存为 GIF 时出现像素化边框
Adobe Illustrator CS5 中的世界地图图像
我在 illustrator CS5 中有一个图像地图,我想将其保存为 GIF,以便减小其大小以供 Web 使用。但是当我保存它时,地图边界沿地图的地图边界有一些白色像素。
我真的不知道为什么会发生这种情况,但由于大小限制,无法将其保存为 Png-8、png-24 格式。
任何有意义的答案都将受到高度赞赏并提前致谢。
World Map Images in Adobe Illustrator CS5
I have an image Map in illustrator CS5 which i want to save in GIF so as to reduce its size for web use. But when i save it, the map boundaries are having some white pixels all along the map boundaries of map.
I really dont know why has happened to it, but cant save it in Png-8, png-24 formate due to size constraint.
Any meaningful answer will be highly appreciate and thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的背景颜色是不可更改的吗?也许您可以使用与背景相同的颜色保存图像。
问题是 gif 不支持真正的透明度。
如果这不起作用,你能提供你想要保存的图像(gif 和 png,我现在没有 AI)吗?也许我可以对 gif 的大小或清除边缘做一些事情。
Is your background a non-changable color? Maybe you can save the image with the same color as a background.
The problem is gifs don't support true transparency.
If this doesn't work can you provide the image you are trying to save (gif and png, I don't have AI right now)? Maybe there will be something I can do about the size or clearing the gif's edges.
透明 GIF 不像 PNG 那样具有 8 位 Alpha 通道:GIF 中的像素要么存在,要么不存在:如果存在,您就无法看穿它。这通常意味着透明和不透明区域之间的边缘看起来是块状的。
有两种方法可以解决这个问题...要么使用 PNG 24(Illustrator 的“另存为 Web”功能将帮助您将其缩小),或者在导出到 GIF 之前在 Illustrator 中在图像后面创建一个背景颜色图层。如果此背景颜色层与您放置图像的网站相同,则边缘会很好地融合。
transparent GIFs don't have an 8-bit alpha channel, like PNG does: a pixel in a GIF is either there, or it's not: if it's there, you can't see through it. This often means that an edge between transparent and non-transparent areas looks blocky.
There are two ways to deal with this... either use a PNG 24 (and the Illustrator Save for Web feature will help you to make it smaller), or in Illustrator create a background color layer behind your image before you export to GIF. If this background color layer is the same as the website you put the image on, the edges will blend nicely.