最近开始学习图形图像方面的知识,我的想法是了解计算机如何加载或显示一张图片,如果后续有可能将会尝试写些代码一步一步加载一张图片。以下文章是本人翻译而成,源地址:http://www.differencebetween.net/technology/difference-between-bmp-and-jpg/ 。翻译水平有限且有省略的地方,有问题欢迎拍砖。

译文:

  BMP和JPG是用于图像文件不同的扩展名,两种图片格式各有优缺点。BMP代指位图(Bitmap),JPG遵循JPEG的标准。BMP图像文件是未经压缩的,而JPG格式的文件是经过压缩的数字图像。BMP格式的文件每个像素都有自己的具体颜色,展示图片详情。因JPG格式的图片是经过压缩的,在这一点上二者不同。这也是BMP格式图片的分辨率高于JPG格式图片的原因。位图文件较适合于有限的颜色,而JPG格式的图片支持多达1600万种颜色。

  与JPG图片相比,BMP图片由于未经压缩占用的空间较大。当图片经过压缩保存为JPG格式时将导致丢失一些不重要信息,在一般情况下你将不会感觉出来。JPG格式的文件具有分析图片中重要信息的能力,由于会给原始图像带来一些无法察觉的改变,所以无法辩论出人类的眼睛,但文件的大小可以降低到原来的1/10甚至1/20。

  JPG文件用于网页中,较BMP文件相比具有较小、便于使用、便于下载等优点。然而在图片处理领域,由于BMP文件包含了所有的图片信息,相比JPG文件具有优势,经常用于图标文件及小的图片中。因为BMP文件的高品质,故便于修改及变更。与之相比,JPG文件舍弃了图像品质换取了极大的扩展能力,这种改变是显而易见的。JPG格式最适用于数码图片中,因为能够产生较高质量的图片且占用空间较小,所以JPG格式被广泛用于数码相机中。

原文如下:

Difference between BMP and JPG

BMP and JPG are two different types of file extensions used for graphic files. Both the file formats have their own pros and cons. BMP stands for Bitmap, while JPG follows the standard formulated by the Joint Photographic Experts Group. Graphic files with a BMP format are uncompressed bitmapped images, ant those JPG formats are compressed digital images. In BMP format files, each and every pixel has its own specific color, laying out a detailed map of the picture. This is not the case with the JPG format graphic files, as they are compressed. This is why BMP formatted images have a higher resolution than JPG images. Bitmap formats are well suited for images with limited number of colors, while JPG format graphic files support up to 16 million colors.

BMP images, because they are uncompressed, are larger in size when compressed to JPG images. This is attributed to the fact that graphic files undergo compression when they are saved in JPG format, and this compression leads to a loss of unimportant information from that image, which is not at all detectable in a normal view. A JPG file format has the capability to analyze which information is important for a particular image. It makes unidentifiable changes to the image, which cannot be distinguished by the human eye, and this reduces the file size to 1/10th or 1/20th of the original file size.

For using images on the web, JPG images, being smaller in size, are easy to use and can be downloaded faster when compared to the larger sized BMP images. However, when it comes to image processing, BMP format images are preferred over JPG images, as they contain all the image information in a simple format. These are usually used for icons and small sized images. It is also quite easy to edit or make changes to BMP images, because of their high quality, whereas JPG images lose their quality to a greater extent when they are edited, and the changes made are noticeable. JPG format is best for digital photographs. This format is being widely used by digital cameras, as they take less space when producing high quality images.

Summary:

  1. BMP stands for Bitmap, while JPG follows the standard formulated by the Joint Photographic Experts Group.
  2. BMP format files are uncompressed bitmapped images, while those with a JPG format are compressed digital images.
  3. BMP formatted images have a higher resolution than JPG images.
  4. BMP images are larger in size when compared to JPG images.
  5. JPG images, being easily downloadable, are preferred over BMP images for web use.
  6. BMP images are of a higher quality than JPG images.

转载于:https://www.cnblogs.com/fitel/archive/2012/10/31/2747768.html

【译】BMP格式与JPG格式之间的区别相关推荐

  1. 【超简单实用教程】mkv、flv格式转mp4格式(附网盘资源)

    原写在自己的B站专栏,为了方便,把那篇删了,只放在CSDN里了. 之前看到有人推荐过类似的技术入门帖,想到了自己当初也是从什么都不明白一点点摸索的.不过这篇文章只提了mkv的格式转换,我想顺着这个思路 ...

  2. flac格式转换mp3格式_MP3,FLAC和其他音频格式之间有什么区别?

    flac格式转换mp3格式 Digital audio has been around a very long time so there's bound to be a plethora of au ...

  3. 关于通过webclient和JSON格式报文与服务器之间通讯的解决方法和遇到的难题

    关于通过webclient和JSON格式报文与服务器之间通讯的解决方法和遇到的难题 参考文章: (1)关于通过webclient和JSON格式报文与服务器之间通讯的解决方法和遇到的难题 (2)http ...

  4. 转 把GIF图片转换成单个连续的图片 转 tif 等任意多帧图片转换bmp 或者gif等格式...

    为什么80%的码农都做不了架构师?>>>    转 把GIF图片转换成单个连续的图片 转 tif 等任意多帧图片转换bmp 或者gif等格式 using System; using ...

  5. 单精度、双精度和半精度浮点格式之间的区别

    源自公众号strongerHuang 单精度.双精度和半精度浮点格式之间的区别 IEEE 浮点算术标准是用来衡量计算机上以二进制所表示数字精度的通用约定.在双精度格式中,每个数字占用64位,单精度格式 ...

  6. 位图(BMP)文件头格式及数据分析

    由于BMP文件有诸多格式,这里只以256色彩色位图为例来分析一下. 这个图是我自己用画图板做的,如下. 图1 BMP图 由于这里限制上传BMP文件,所以这个是JPG的.我的原始的BMP文件大小是200 ...

  7. 常见图片格式jpg、jpeg、png、gif等之间的区别

    jpg.jpeg.png.gif.bmp.tiff.ai.cdr.eps 对于做设计这一行的人来说,这几个图片格式是最常用的,也是最常见的,几乎每一天都要与他们打交道.刚刚入门的新人通常不知道在什么地 ...

  8. War包是什么,为什么WEB服务通常打出来的都是War包?除了War包,还有几种打包格式,他们之间的区别呢?

    1.背景介绍 2.知识剖析 3.常见问题 4.解决方案 5.编码实战 6.扩展思考 7.参考文献 8.更多讨论 1.背景介绍 WAR是Sun提出的一种Web应用程序格式,是许多文件的一个压缩包.这个包 ...

  9. TensorFlow学习笔记之 bmp格式、txt格式数据转换成tfrecord 格式

    目录 一.前言 二.bmp 格式数据转换成 tfrecord 格式的代码 三.txt 格式数据转换成 tfrecord 格式的代码 一.前言 之前我们讲过了关于 tfrecord 格式的相关内容,在这 ...

  10. MATLAB的jpg、bmp、jpeg等格式转换为RAW并显示图片。

    最近在做图像传输接口方面的工作,所以想了解一下图片的数据格式,浅浅的用matlab跑了一下.不多说直接贴代码 close all clear all % /读取jpg图像显示// A=imread(' ...

最新文章

  1. IBM推出基于Watson的认知营销服务
  2. Android NDK JNI 简单例子1 : Android NDK配置和下载
  3. 关于node js和 npm 版本不匹配的情况
  4. 实现集合类的元素删除和修改的一点实践。。。
  5. S/4HANA里通过key user tool将Extension field添加到UI上的技术实现
  6. SqlServer 备份还原教程
  7. 思维导图网页版、临时使用推荐工具——画图本
  8. 使用 Visual C# .NET 通过 XPath 表达式查询 XML
  9. 蓝牙耳机声音一顿一顿的_尴尬!vivo无线耳机上线两个月价格大跳水,却仍被批不值...
  10. 大学生在校期间可以考哪些证书?
  11. 给云服务器上传文件,如何给云服务器上传文件
  12. Xcode编译后运行程序Killed: -9,因为签名有问题
  13. 非平衡电桥电阻计算_用非平衡电桥测量电阻
  14. GHOST文件修改OEM的方法
  15. ssr 从文件导入服务器,Vue SSR, 在服务端请求数据时怎么带 cookies?
  16. Labelme对图像标注、json转化png格式
  17. nginx根据设备类型进行url重定向
  18. XDP-syncookie实现方式
  19. C++入门经典 Ivor Horton 第3版
  20. RN 在Android Studio运行闪退后报错

热门文章

  1. Windows下Cesium Terrain Builder编译 (VS2015)
  2. Consider defining a bean of type ‘com.bsj.system.service.RedisService‘ in your configuration.
  3. 26. iterator优先于const_iterator、reverse_iterator以及const_reverse_iterator
  4. linux 多线程超时中断,c#中的线程超时
  5. 短信转移到另一个手机接收_如何将iPhone手机接收短信同步到另外一台设备上?...
  6. python输出命令_Python中的命令输出解析
  7. kotlin埋点_GitHub - shajinyang/ilvdo-event-track: 埋点框架
  8. qt设置文本背景透明_QT QWidget设置窗体透明度方法汇总
  9. redis新数据类型-bitmaps
  10. html mysql查询_mysql查询