Class ImageDimensionExtractorExtensions
Inheritance
System.Object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class ImageDimensionExtractorExtensions
Methods
View SourceIsSupportedImageFormat(IImageDimensionExtractor, String)
Gets a value indicating whether the file extension corresponds to a supported image.
Declaration
public static bool IsSupportedImageFormat(this IImageDimensionExtractor imageDimensionExtractor, string extension)
Parameters
Type | Name | Description |
---|---|---|
IImageDimensionExtractor | imageDimensionExtractor | The image dimension extractor implementation that provides detail on which image extensions are supported. |
System.String | extension | The file extension. |
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether the file extension corresponds to an image. |