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.
pub fn prepare_inline_image(bytes: &[u8]) -> Result<ProcessedImage, String>Decode, orient, resize and encode an image for model input. Small supported images retain their original bytes; oversized images fall back to JPEG.