Trying to extract pixel values from a given PNG image

后端 未结 3 1563
甜味超标
甜味超标 2021-02-04 11:09

Trying to understand PNG format.

Consider this PNG Image:

\"enter

3条回答
  •  爱一瞬间的悲伤
    2021-02-04 12:10

    Just for completeness (eboix's answer is right on the spot)

    11- What is the following data?

    C6 25 AA 3E 00 00 00 C2

    Each chunk ends with a CRC (4 bytes), and starts with 4 bytes that tell its length. So, C6 25 AA 3E is the CRC of the previous chunk (IHDR) and 00 00 00 C2 (194) is the length of the following (IDAT) chunk.

    In the same way, the last 4 bytes is the CRC of the IEND chunk.

提交回复
热议问题