PNG与GIF与JPEG与SVG的不同用途有哪些?

江枫思渺然 提交于 2020-08-09 10:58:06

问题:

When should certain image file types be used when building websites or interfaces, etc? 在构建网站或界面等时应该何时使用某些图像文件类型?

What are their points of strength and weakness? 他们的优点和缺点是什么?

I know that PNG & GIF are lossless, while JPEG is lossy. 我知道PNG和GIF是无损的,而JPEG是有损的。
But what is the main difference between PNG & GIF? 但是PNG和GIF之间的主要区别是什么?
Why should I prefer one over the other? 为什么我更喜欢一个呢? What is SVG and when should I use it? 什么是SVG以及何时使用它?

If you don't care about each and every pixel, should you always use JPEG since it's the "lightest" one? 如果你不关心每个像素,你应该总是使用JPEG,因为它是“最轻”的吗?


解决方案:

参考一: https://stackoom.com/question/9npq/PNG与GIF与JPEG与SVG的不同用途有哪些
参考二: https://oldbug.net/q/9npq/What-are-the-different-usecases-of-PNG-vs-GIF-vs-JPEG-vs-SVG
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!