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
System.String

Returns

System.Boolean

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