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 Image
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 Image
Declaration
public ImageSharpImageUrlGenerator(Configuration configuration, RequestAuthorizationUtilities? requestAuthorizationUtilities, IOptions<ImageSharpMiddlewareOptions> options)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The ImageSharp configuration. |
System. |
requestAuthorizationUtilities | Contains helpers that allow authorization of image requests. |
IOptions<Image |
options |
Properties
View SourceSupportedImageFileTypes
Declaration
public IEnumerable<string> SupportedImageFileTypes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<System. |
Methods
View SourceGetImageUrl(Nullable<ImageUrlGenerationOptions>)
Declaration
public string GetImageUrl(ImageUrlGenerationOptions? options)
Parameters
Type | Name | Description |
---|---|---|
System. |
options |
Returns
Type | Description |
---|---|
System. |