Class NoopImageDimensionExtractor
A no-operation implementation of IImageDimensionExtractor that does not extract any image dimensions.
Inheritance
object
Namespace: Umbraco.Cms.Core.Media
Assembly: Umbraco.Core.dll
Syntax
public sealed class NoopImageDimensionExtractor : IImageDimensionExtractor
Constructors
View SourceNoopImageDimensionExtractor()
Declaration
public NoopImageDimensionExtractor()
Properties
View SourceSupportedImageFileTypes
Gets the supported image file types/extensions.
Declaration
public IEnumerable<string> SupportedImageFileTypes { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> | The supported image file types/extensions. |
Methods
View SourceGetDimensions(Stream)
Gets the dimensions.
Declaration
public Size? GetDimensions(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream. |
Returns
| Type | Description |
|---|---|
| Size? | The dimensions of the image if the stream was parsable; otherwise, |