Class ImageSharpImageUrlGenerator
Exposes a method that generates an image URL based on the specified options that can be processed by ImageSharp.
Inheritance
System.Object
Namespace: Umbraco.Cms.Imaging.ImageSharp.Media
Assembly: Umbraco.Cms.Imaging.ImageSharp.dll
Syntax
public sealed class ImageSharpImageUrlGenerator : IImageUrlGenerator
Constructors
View SourceImageSharpImageUrlGenerator(Configuration)
Initializes a new instance of the ImageSharpImageUrlGenerator class.
Declaration
public ImageSharpImageUrlGenerator(Configuration configuration)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The ImageSharp configuration. |
ImageSharpImageUrlGenerator(Configuration, Nullable<RequestAuthorizationUtilities>, IOptions<ImageSharpMiddlewareOptions>)
Initializes a new instance of the ImageSharpImageUrlGenerator class.
Declaration
public ImageSharpImageUrlGenerator(Configuration configuration, RequestAuthorizationUtilities? requestAuthorizationUtilities, IOptions<ImageSharpMiddlewareOptions> options)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The ImageSharp configuration. |
System.Nullable<RequestAuthorizationUtilities> | requestAuthorizationUtilities | Contains helpers that allow authorization of image requests. |
IOptions<ImageSharpMiddlewareOptions> | options |
Properties
View SourceSupportedImageFileTypes
Declaration
public IEnumerable<string> SupportedImageFileTypes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<System.String> |
Methods
View SourceGetImageUrl(Nullable<ImageUrlGenerationOptions>)
Declaration
public string GetImageUrl(ImageUrlGenerationOptions? options)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<ImageUrlGenerationOptions> | options |
Returns
Type | Description |
---|---|
System.String |