什么是png,jpg / jpeg,bmp,gif和其他常见图形格式的标题大小? [英] What is the header size of png, jpg/jpeg, bmp, gif and other common graphics format?
问题描述
我在谷歌搜索。
我在这里找到了一些东西, http://paulbourke.net/dataformats/bmp/ ,但是我不能了解标题的大小。
阅读一些我感到困惑的网页。 http://en.wikipedia.org/wiki/JPEG
任何人都可以提供有关所有这些格式的标题的正确信息吗? 8个字节的标题。
JPEG 文件(请参阅 specification )包含2个字节的标头(SOI),后面跟着一系列标记,一些标记可以跟着数据数组。每种标记都具有不同的标题格式。图像存储的字节遵循SOF0标记(10字节长度)。但是,在JPEG标头和SOF0标记之间还可能有其他段。
BMP 文件包含 14个字节的标题。
GIF 文件在其标题中包含至少14个字节。
I have search in google. I found something here, http://paulbourke.net/dataformats/bmp/ , but i can't understand the size of header.
Reading some webpages i got confused. http://en.wikipedia.org/wiki/JPEG
Can anyone give the correct information of header about all these format?
PNG file contains 8-bytes header.
JPEG file (see specification) contains 2-bytes header (SOI) followed by series of markers, some markers can be followed by data array. Each type of marker has different header format. The bytes where the image is stored follows SOF0 marker (10-bytes length). However, between JPEG header and SOF0 marker there can be other segments.
BMP file contains 14-bytes header.
GIF file contains at least 14 bytes in its header.
这篇关于什么是png,jpg / jpeg,bmp,gif和其他常见图形格式的标题大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!