pub fn inspect(jpeg: &[u8]) -> Result<JpegInfo, DctError>Expand description
Inspect a JPEG and return image metadata without decoding the entropy stream.
Much cheaper than read_coefficients when you only need the image
dimensions, component layout, or block counts.
ยงErrors
Returns DctError if the input is not a supported baseline JPEG.