SVG:
SVG 代表可缩放矢量图形。 SVG 文件使用 .svg 扩展名。它是由路径组成的矢量图像。
PNG:
PNG 代表便携式网络图形。使用的 PNG 图像扩展名是.png 。它使用无损压缩算法。它是由像素组成的光栅图像。
SVG 和 PNG 的区别:
SVG | PNG | ||
---|---|---|---|
It stands for Scalable Vector Graphics. | It stands for Portable Network Graphics. | ||
It is a vector image. | It is a raster image. | ||
It’s quality doesn’t decrease on zooming. | Quality decreases on zooming. | ||
It is made up of paths. | It is made up of fixed no of pixels. | ||
SVG files are editable. | PNG files are not editable. | Extensions used is .svg. | Extension used is .png. |
Mostly used for devices with high pixel density. | It is mostly used in image creation. |