Reads a JPEG's pixel dimensions from its SOFn marker without decoding the image, so JPEG pages can be sized without a pixel decoder. Throws if the bytes are not a JPEG whose size can be found.
SOFn
The binary data to process.
The updated result.
Reads a JPEG's pixel dimensions from its
SOFnmarker without decoding the image, so JPEG pages can be sized without a pixel decoder. Throws if the bytes are not a JPEG whose size can be found.