Skip to main content

is_image_path

Function is_image_path 

Source
pub fn is_image_path(path: &Path) -> bool
Expand description

Check whether a path looks like an image file based on extension.

Matching is case-insensitive because macOS and Windows commonly use case-insensitive filesystems, so IMAGE.PNG is still an image.