Skip to main content

prepare_inline_image

Function prepare_inline_image 

Source
pub fn prepare_inline_image(bytes: &[u8]) -> Result<ProcessedImage, String>
Expand description

Decode, orient, resize and encode an image for model input. Small supported images retain their original bytes; oversized images fall back to JPEG.