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.Web.Common.Media
Assembly: Umbraco.Web.Common.dll
Syntax
public 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. |
Properties
View SourceSupportedImageFileTypes
Declaration
public IEnumerable<string> SupportedImageFileTypes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<System. |
Methods
View SourceGetImageUrl(ImageUrlGenerationOptions)
Gets the image URL based on the specified options
.
Declaration
public string GetImageUrl(ImageUrlGenerationOptions options)
Parameters
Type | Name | Description |
---|---|---|
Image |
options | The image URL generation options. |
Returns
Type | Description |
---|---|
System. |
The generated image URL. |