This information is found in APP8 of SPIFF-style JPEG images (the "official" yet rarely used JPEG file format standard: Still Picture Interchange File Format). See http://www.jpeg.org/public/spiff.pdf for the official specification.
Index1
Tag Name
Writable
Values / Notes
0
SPIFFVersion
no
2
ProfileID
no
0 = Not Specified 1 = Continuous-tone Base 2 = Continuous-tone Progressive 3 = Bi-level Facsimile 4 = Continuous-tone Facsimile
3
ColorComponents
no
6
ImageHeight
no
(at index 4 in specification, but there are 2 extra bytes here in my only SPIFF sample, version 1.2)
The "Adobe_CM" APP13 segment presumably contains color management information, but the meaning of the data is currently unknown. If anyone has an idea about what this means, please let me know.
The "Adobe" APP14 segment stores image encoding information for DCT filters. This segment may be copied or deleted as a block using the Extra "Adobe" tag, but note that it is not deleted by default when deleting all metadata because it may affect the appearance of the image.
Index2
Tag Name
Writable
Values / Notes
0
DCTEncodeVersion
no
1
APP14Flags0
no
0x0 = (none) Bit 15 = Encoded with Blend=1 downsampling