Is the 2nd and 3rd byte of a JPEG image always the APP0 or APP1 marker?
问题 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 second and third are usually either 0xFF and 0xE0 ( APP0 ) indicating either a JFIF segment or JFIF extension segment or 0xFF and 0xE1 ( APP1 ) indicating an EXIF segment. My question: is this always the case? Are the 2nd and 3rd bytes always APP0 or APP1? 回答1: No. There are e.g. several cameras that create JPEGs without these markers, or with other APP markers