   jpeg image size
  For the past day, I've been looking at specs for the jpeg format and I'm attempting to read the size of the image. The actual height and width of the image, not the size in bytes.My problem is that in the header, there are some fields that have the x density and the y density, which is usually in dots per inch, or dots per centimetre. The value for the two densities have been the same so far for each jpg I've tested.Is it actually possible to get the x,y size of a jpeg image file with just the header? Or do I have to go and look at half the file to do it?   
  Ir doesn't look like it :/JPEG was probably made to be a streaming format, so you'll have to scan the file and figure out the total X & Y.If the example code I looked at they figure out diemensions from the H & V sampling factors in the start-of-frame header.   ;  You'll have to look for the SOF (start of frame) marker. Width and height information is in the frame header, which comes right after the marker.The initial header (SOI) doesn't have this information.