简体   繁体   English

什么是作为PNG呈现的SVG图像?

[英]What's an SVG image rendered as PNG?

There's an svg image of Alabama's state flag @ http://en.wikipedia.org/wiki/File:Flag_of_Alabama.svg 有一张阿拉巴马州旗的svg图片@ http://en.wikipedia.org/wiki/File:Flag_of_Alabama.svg

The caption says "This image rendered as PNG in other sizes." 标题显示“此图像以其他尺寸呈现为PNG”。 I downloaded the 1,000-pixel size @ http://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Flag_of_Alabama.svg/1000px-Flag_of_Alabama.svg.png but it won't display on my web page. 我下载了1000像素大小@ http://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Flag_of_Alabama.svg/1000px-Flag_of_Alabama.svg.png,但它不会显示在我的网页上。 I opened it in Photoshop, copied it into a new window and saved it with a new file name, but it still doesn't display. 我在Photoshop中打开它,将其复制到一个新窗口并用新文件名保存,但它仍然无法显示。

So I guess I was wrong when I thought "rendered as a PNG" means an image is a png. 所以当我认为“渲染为PNG”意味着图像是png时,我想我错了。 It's actually a SVG...with a .png extension? 它实际上是一个SVG ...扩展名为.png?

Anyway, I just wondered what's going on here and what I need to do to download such images as pngs. 无论如何,我只是想知道这里发生了什么以及我需要做些什么才能将这些图像下载为pngs。 Or is the only solution to take a screenshot? 或者是截屏的唯一解决方案?

To get the image as .svg just copy the source of the page (of the image) to an editor. 要将图像作为.svg获取,只需将页面源(图像的)复制到编辑器即可。 Now save it as an .svg image 现在将其保存为.svg图像

The PNG file you linked to (the ".png" link) is not an SVG. 您链接到的PNG文件(“.png”链接)不是SVG。 It is definitely a PNG. 绝对是PNG。

I don't know why it isn't displaying for you, but it has nothing to do with SVG. 我不知道它为什么不显示给你,但它与SVG无关。

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

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