Class SvgDimensionExtractor
Inheritance
object
Namespace: Umbraco.Cms.Infrastructure.Media
Assembly: Umbraco.Infrastructure.dll
Syntax
public class SvgDimensionExtractor : ISvgDimensionExtractor
Constructors
View SourceSvgDimensionExtractor(ILogger<SvgDimensionExtractor>)
Initializes a new instance of the SvgDimensionExtractor class.
Declaration
public SvgDimensionExtractor(ILogger<SvgDimensionExtractor> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogger<SvgDimensionExtractor> | logger | The logger. |
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, |