Function read_image_from_path

Source
pub fn read_image_from_path(path: &PathBuf) -> Result<CacheValue>
Expand description

Read an image file from the given path and return it as a CacheValue

ยงErrors

Returns an error if the file does not exist, is not a file, or has an unsupported extension.