📜  JPEG 和 GIF 的区别

📅  最后修改于: 2021-09-11 04:04:30             🧑  作者: Mango

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

JPEG:
JPEG 代表联合图像专家组。 .jpg.jpeg扩展名用于以这种格式存储图像。它使用有损压缩算法,这意味着会丢失一些图像数据。

动图:
GIF 代表图形交换格式。使用的 GIF 扩展名是.gif 。它使用无损压缩算法。 GIF 通常尺寸较小,并且支持动画和透明度。

JPEG 和 GIF 的区别:

JPEG GIF
It stands for Joint Photographic Experts Group. It stands for Graphics Interchange Format.
It uses lossy compression algorithm. It uses lossless compression algorithm.
Some of the image information is lost on decompression. No image information is lost on decompression.
It supports 16 million colors. It supports only 256 colors.
It doesn’t support transparency in the images. It supports single bit transparency in the images. Extensions used are .jpg and .jpeg. Extension used is .gif.
Mostly used in the photography. It is mostly used in computer generated images and logos.
It doesn’t supports animation. It supports animation.