preprocess_image_with_max_pixels

Function preprocess_image_with_max_pixels 

Source
pub fn preprocess_image_with_max_pixels(
    data_uri: &str,
    vcfg: &VisionConfig,
    max_pixels: Option<usize>,
) -> Result<(Vec<f32>, usize, usize)>
Expand description

Preprocess an image with an optional max-pixels cap, matching vLLM-style multimodal processor controls. None preserves Atlas’ historical 1280px long-side cap.