pub fn resize( data: &[u8], size: (usize, usize), channels: usize, target: (usize, usize), ) -> Result<Vec<u8>>
Resizes a tightly packed one- to four-channel image with bilinear interpolation.