Is the 2nd and 3rd byte of a JPEG image always the APP0 or APP1 marker?

前端 未结 8 1001
失恋的感觉
失恋的感觉 2020-12-10 17:18

I have a few different JPEG images I\'ve been testing with. As far as I\'ve seen the 0th and first bytes are always 0xFF and 0xD8.

The s

8条回答
  •  没有蜡笔的小新
    2020-12-10 17:28

    For a JFIF file, a JFIF header should follow immediately after FFD8. The JFIF header is contained within an APP0 marker. The specification doesn't say anything about padding though.

    Without the JFIF header we can only guess what color format is used.

提交回复
热议问题