Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    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 Source

    SupportedImageFileTypes

    Declaration
    public IEnumerable<string> SupportedImageFileTypes { get; }
    Property Value
    Type Description
    IEnumerable<System.String>

    Methods

    View Source

    GetImageUrl(Nullable<ImageUrlGenerationOptions>)

    Declaration
    public string GetImageUrl(ImageUrlGenerationOptions? options)
    Parameters
    Type Name Description
    System.Nullable<ImageUrlGenerationOptions> options
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ImageSharpImageUrlGenerator(Configuration, Nullable<RequestAuthorizationUtilities>, IOptions<ImageSharpMiddlewareOptions>)
    • Properties
      • SupportedImageFileTypes
    • Methods
      • GetImageUrl(Nullable<ImageUrlGenerationOptions>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX