FileHelper.GetImageExtension Method

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

GetImageExtension(string)

Returns the default extension for common image mime types.

public static string GetImageExtension(string mimetype)

Parameters

mimetype
string

The mime type to lookup.

Returns

string

The extension or an empty string if no match was found.