png、jpg/jpeg、bmp、gif等常用图形格式的页眉大小是多少? [英] What is the header size of png, jpg/jpeg, bmp, gif and other common graphics format?

查看:23
本文介绍了png、jpg/jpeg、bmp、gif等常用图形格式的页眉大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在谷歌搜索.我在这里找到了一些东西,http://paulbourke.net/dataformats/bmp/,但我不明白它的大小标题.

I have search in google. I found something here, http://paulbourke.net/dataformats/bmp/ , but i can't understand the size of header.

阅读一些网页时我感到困惑.http://en.wikipedia.org/wiki/JPEG

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 文件包含 8 字节标题.

JPEG 文件(参见 规范) 包含 2 字节的标头 (SOI),后跟一系列标记,一些标记后可以跟数据数组.每种类型的标记都有不同的标题格式.存储图像的字节遵循 SOF0 标记(10 字节长度).但是,JPEG 标头和 SOF0 标记之间可以有其他段.

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 文件包含 14 字节标题.

GIF 文件包含 至少 14 个字节 在其标题中.

GIF file contains at least 14 bytes in its header.

这篇关于png、jpg/jpeg、bmp、gif等常用图形格式的页眉大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆