Skip to main content

read_jpeg_exif_orientation

Function read_jpeg_exif_orientation 

Source
fn read_jpeg_exif_orientation(bytes: &[u8]) -> Option<u8>
Expand description

Read EXIF orientation (tag 0x0112) from JPEG bytes. Returns 1..=8 or None. Hand-rolled because Pixbuf::apply_embedded_orientation silently drops EXIF on some RAW-embedded JPEGs (truncated/oversize APP1 segments).