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

前端 未结 8 941
失恋的感觉
失恋的感觉 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:34

    Those first two bytes are the JPEG SOI marker so are always present.

    The 2nd and 3rd bytes appear to store meta data, which probably isn't present in every JPEG.

    Further Reading.

提交回复
热议问题