Skip to main content

bare_png

Function bare_png 

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

The PNG bytes as the picture and no more. None if it is not put together as a PNG is.

A PNG is a row of chunks after its signature: each a length, a name of four letters, that much data, and a checksum. The header is first and the end chunk last; what follows that is no part of the picture.