pub fn reencode(input: &[u8], max_stored: usize) -> Result<Logo, Refusal>Expand description
input, a PNG, decoded and written afresh: 8-bit, the colour type its
pixels have once palettes and transparency are expanded, only IHDR,
IDAT and IEND. An animated PNG keeps its first frame. Refused when
it is not a PNG, a side is 0 or over MAX_SIDE, the decoder fails, or the
result is over max_stored bytes (a parameter, so a test can reach it:
the review’s A4).