pub fn trim_trailing_image_path_str(raw: &str) -> &strExpand description
Convenience wrapper for trim_trailing_image_path that checks
image file extensions via has_supported_image_extension.
Handles file:// scheme and ~/ home expansion before checking.