FileHelper.IsWebImage Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

IsWebImage(string)

Returns whether the file at the specified path is considered a web image (bmp, gif, ico, jpg, png or svg).

public static bool IsWebImage(string path)

Parameters

path
string

The path string to check.

Returns

bool

true if the name ends with .bmp, .gif, .ico, .jpg, .png or .svg, otherwise false.