Skip to main content

preview

Function preview 

Source
pub fn preview(bytes: &[u8]) -> Result<Preview<'_>, Error>
Expand description

Read only the indexed Thmb record (identical in container versions 8 to 12), checking every PNG chunk CRC. Compressed pixels must still be validated by the consuming image decoder, with allocation limits.