fn wrap_images_with_blur_with<F>(html: &str, dims_fn: F) -> StringExpand description
wrap_images_with_blur 的纯函数核心,接受 dimensions 查询闭包以便单测。
dims_fn(rel_path) -> Option<(u32, u32)> 注入真实或测试用的 dimensions 来源,
使本函数不依赖文件系统——测试可注入已知宽高,生产注入 get_image_dimensions。