Skip to main content

image_source

Function image_source 

Source
pub fn image_source(url: &str, base: Option<&Path>) -> ImageSource
Expand description

What gpui loads for an image URL as written in a document.

Anything with :// is fetched as it stands. Anything else is a file: an absolute path as it stands, a relative one joined onto base when there is one.