Interface IImageDimensionExtractor
Allows extracting the image dimensions from a stream.
Namespace: Umbraco.Cms.Core.Media
Assembly: Umbraco.Core.dll
Syntax
public interface IImageDimensionExtractorProperties
View SourceSupportedImageFileTypes
Gets the supported image file types/extensions.
Declaration
IEnumerable<string> SupportedImageFileTypes { get; }Property Value
| Type | Description | 
|---|---|
| IEnumerable<System.String> | The supported image file types/extensions. | 
Methods
View SourceGetDimensions(Stream)
Gets the dimensions.
Declaration
Size? GetDimensions(Stream stream)Parameters
| Type | Name | Description | 
|---|---|---|
| Stream | stream | The stream. | 
Returns
| Type | Description | 
|---|---|
| System.Nullable<System.Drawing.Size> | The dimensions of the image if the stream was parsable; otherwise,  |