One: .jpeg
file header identifier (2 bytes): 0XFF, 0XD8 (SOI)
end of file identifier (2 bytes): 0XFF, 0XD9 (EOI)
Open the .jpg file in hexadecimal, you can see the head and tail logo, as shown below:
Two: .png
file header identification (8 bytes):
0X89 0X50 0X4E 0X47 0X0D 0X0A 0X1A 0X0A
Three: .bmp
file header identification (2 bytes):
0X42 0X4D
Four: .gif
- File header identification (6 bytes)
0X47 0X49 0X46 0X38 0X39(37) 0X61
GIF 8 9 (7) a
Five: .tiff
file header identification (2 bytes)
0X4D 0X4D or 0X49 0X49