先决条件 – 图像格式
JPEG 和位图是用于存储图像的两种不同类型的格式。
JPEG:
JPEG 的完整形式是联合图像专家组。并且有两个扩展名用于以这种格式存储图像,它们是.jpg和.jpeg 。它使用有损压缩算法,这意味着在减小图像大小时会丢失一些数据。
位图:
位图是一种用于存储数字图像的图像文件格式。位图这个词的意思是位图。它们用于创建逼真的图形和图像。 .bmp和.dib扩展名用于以这种格式存储图像。
让我们看看JPEG和BITMAP之间的区别:
S.NO. | JPEG | BITMAP |
---|---|---|
1 | It stands for Joint Photographic Experts Group.. | It stands for Map of Bits. |
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 | They are quite complex . | While, bitmaps are very simplistic. |
5 | It had a few patent debacles in the past. | It is patent free. |
6 | It doesn’t support transparency in the images. | It supports transparency in the images. |
7 | Mostly used in the photography. | It mostly is used in creating realistic graphics and images |
8 | Extensions used are .jpg and .jpeg.. | Extensions used are .bmp and .dib. |