Skip to main content

portrait

Function portrait 

pub fn portrait(encoded: &[u8]) -> Option<Vec<u8>>
Expand description

encoded (any format the toolkit decodes) as a PORTRAIT_SIDE square JPEG, cropped to its centre, or None when it does not decode.