Skip to main content

extract_largest_embedded_jpeg

Function extract_largest_embedded_jpeg 

Source
fn extract_largest_embedded_jpeg(path: &Path) -> Option<Vec<u8>>
Expand description

Return the largest renderable JPEG embedded in the file, or None. Uses structure-aware marker walking; skips lossless SOF3 payloads (compressed Bayer data) and payloads below MIN_EMBEDDED_JPEG_SIZE.