Skip to main content

read_image

Function read_image 

Source
pub fn read_image(
    workspace: &dyn Workspace,
    path: &Path,
) -> Result<UserContent, String>
Expand description

The image at path in workspace as message content, its type told by its first bytes; why not, for a file that cannot be read, is larger than a provider takes, or is not a PNG, JPEG, GIF or WebP image.