📜  PNG 和 GIF 的区别

📅  最后修改于: 2021-09-12 10:41:11             🧑  作者: Mango

GIF 和 PNG 是用于存储图像的两种不同类型的格式。

动图:
GIF 代表图形交换格式。用于以这种格式存储图像的扩展名是.gif.gfa 。它使用无损压缩算法并支持 8 位颜色。

PNG:
它代表便携式网络图形。对于 PNG 图像,使用的扩展名是.png 。它还使用无损压缩算法。

GIF 和 PNG 的区别:

GIF PNG
It stands for graphics interchange format. It stands for portable network graphics.
It supports animations. It doesn’t support animations.
MIME type is image/gif. MIME type is image/png.
The file size is generally less. The file size is large as compared to a GIF.
It supports one bit transparency in the images. It supports transparency with an elegance. The extensions used are .gif and .gfa. The extension used is .png.
Mostly used when animation is needed. It is mostly used in image creation.
It provides a limited color range of 256 colors. It provides thousand of colors.
It supports layers and multi-paging. While it does not supports layers and multi-paging.
It is best suited for screenshots, typography, etc. It is suitable for small vectors, crispy edged visuals, logos, etc.