Skip to main content

resolve_image_path

Function resolve_image_path 

Source
pub fn resolve_image_path(dest: &str, doc_dir: Option<&Path>) -> Option<PathBuf>
Expand description

Resolve an image destination to a readable local path, or None when it’s not one a synchronous loader handles: a remote URL, a data: URI, a protocol-relative //host/…, or a relative path with no document directory to anchor it. The one policy every frontend that decodes local files eagerly shares — the rest stay a placeholder.