Skip to main content

png_size

Function png_size 

Source
pub fn png_size(bytes: &[u8]) -> Option<(u32, u32)>
Expand description

Width and height from a PNG’s header, or None if bytes isn’t a PNG.