From 19f08160ad2735fdbc0524b4858228264bd2a189 Mon Sep 17 00:00:00 2001 From: Thomas Green Date: Sun, 14 Jun 2026 21:57:11 +0100 Subject: [PATCH] Correct image resize algorithm for all qwens after qwen2vl and gemma4 --- examples/mtmd/clip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/mtmd/clip.cpp b/examples/mtmd/clip.cpp index 3a9dc6a6..9b8a7c9f 100644 --- a/examples/mtmd/clip.cpp +++ b/examples/mtmd/clip.cpp @@ -4708,7 +4708,7 @@ bool clip_image_preprocess(struct clip_ctx * ctx, const clip_image_u8 * img, str params.patch_size * cur_merge, params.image_min_pixels, params.image_max_pixels); - img_tool::resize(*img, resized, new_size, img_tool::RESIZE_ALGO_BILINEAR, false); + img_tool::resize(*img, resized, new_size, img_tool::RESIZE_ALGO_BICUBIC, false); // clip_image_save_to_bmp(resized, "preproc.bmp"); clip_image_f32_ptr img_f32(clip_image_f32_init()); // clip_image_f32_ptr res(clip_image_f32_init());