read JPEG image header, determine dimensions and number of components. return false if image is not JPEG (i hope).
See Implementation
read JPEG image header, determine dimensions and number of components. return false if image is not JPEG (i hope).