pub fn pad_image(
img: &ImageBuffer<Rgb<u8>, Vec<u8>>,
target_width: u32,
target_height: u32,
fill_color: [u8; 3],
) -> Result<ImageBuffer<Rgb<u8>, Vec<u8>>, ImageProcessError>Expand description
Pads an image to the specified dimensions with a fill color.