📜  JPEG 和 PNG 的区别

📅  最后修改于: 2021-09-11 03:48:14             🧑  作者: Mango

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

JPEG:
它代表联合摄影专家组。用于以这种格式存储图像的扩展名是.jpg.jpeg 。它使用有损压缩算法,这意味着部分图像数据丢失但图像尺寸减小。

PNG:
它代表便携式网络图形。使用的 PNG 图像扩展名是.png 。它使用无损压缩算法,因此图像尺寸通常很大。

JPEG 和 PNG 的区别:

S.NO JPEG PNG
1. It stands for Joint Photographic Experts Group. It stands for Portable Network Graphics.
2. It uses lossy compression algorithm. It uses lossless compression algorithm.
3. Some of the image information is lost on decompression. No image information is lost on decompression.
4. Image size is generally less. Image size is large due to lossless compression algorithm.
5. It doesn’t support transparency in the images. It supports transparency in the images. 6. Extensions used are .jpg and .jpeg. Extension used is .png.
7. Mostly used in the photography. It is mostly used in image creation.