• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Web
      • FormattedImage
      • FormatUtilities
      • ImageCacheMetadata
      • ImageMetadata
    • SixLabors.ImageSharp.Web.Caching
      • CacheHash
      • ICacheHash
      • IImageCache
      • PhysicalFileSystemCache
      • PhysicalFileSystemCacheOptions
    • SixLabors.ImageSharp.Web.Commands
      • CommandParser
      • DictionaryExtensions
      • IRequestParser
      • PresetOnlyQueryCollectionRequestParser
      • PresetOnlyQueryCollectionRequestParserOptions
      • QueryCollectionRequestParser
    • SixLabors.ImageSharp.Web.Commands.Converters
      • ICommandConverter
      • ICommandConverter<T>
    • SixLabors.ImageSharp.Web.DependencyInjection
      • ApplicationBuilderExtensions
      • IImageSharpBuilder
      • ImageSharpBuilderExtensions
      • ImageSharpConfiguration
      • ServiceCollectionExtensions
    • SixLabors.ImageSharp.Web.Middleware
      • ConcurrentDictionaryExtensions
      • ImageCommandContext
      • ImageProcessingContext
      • ImageSharpMiddleware
      • ImageSharpMiddlewareOptions
    • SixLabors.ImageSharp.Web.Processors
      • BackgroundColorWebProcessor
      • FormatWebProcessor
      • IImageWebProcessor
      • JpegQualityWebProcessor
      • ResizeWebProcessor
    • SixLabors.ImageSharp.Web.Providers
      • IImageProvider
      • PhysicalFileSystemProvider
      • ProcessingBehavior
    • SixLabors.ImageSharp.Web.Resolvers
      • IImageCacheResolver
      • IImageResolver
      • PhysicalFileSystemCacheResolver
      • PhysicalFileSystemResolver
    • SixLabors.ImageSharp.Web.Synchronization
      • AsyncKeyLock<TKey>
      • AsyncKeyReaderWriterLock<TKey>
      • AsyncLock
      • AsyncReaderWriterLock
      • RefCountedConcurrentDictionary<TKey, TValue>

    Class ImageSharpMiddlewareOptions

    Configuration options for the ImageSharpMiddleware middleware.

    Inheritance
    Object
    ImageSharpMiddlewareOptions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: SixLabors.ImageSharp.Web.Middleware
    Assembly: SixLabors.ImageSharp.Web.dll
    Syntax
    public class ImageSharpMiddlewareOptions

    Properties

    | Improve this Doc View Source

    BrowserMaxAge

    Gets or sets the duration to store images in the browser cache. If an image provider provides a Max-Age for a source image then that will override this value.

    Defaults to 7 days.

    Declaration
    public TimeSpan BrowserMaxAge { get; set; }
    Property Value
    Type Description
    TimeSpan
    | Improve this Doc View Source

    CachedNameLength

    Gets or sets the length of the filename to use (minus the extension) when storing images in the image cache. Defaults to 12 characters.

    Declaration
    public uint CachedNameLength { get; set; }
    Property Value
    Type Description
    UInt32
    | Improve this Doc View Source

    CacheMaxAge

    Gets or sets the duration to store images in the image cache.

    Defaults to 365 days.

    Declaration
    public TimeSpan CacheMaxAge { get; set; }
    Property Value
    Type Description
    TimeSpan
    | Improve this Doc View Source

    Configuration

    Gets or sets the base library configuration.

    Declaration
    public Configuration Configuration { get; set; }
    Property Value
    Type Description
    Configuration
    | Improve this Doc View Source

    MemoryStreamManager

    Gets or sets the recyclable memorystream manager used for managing pooled stream buffers independently from image buffer pooling.

    Declaration
    public RecyclableMemoryStreamManager MemoryStreamManager { get; set; }
    Property Value
    Type Description
    RecyclableMemoryStreamManager
    | Improve this Doc View Source

    OnBeforeSaveAsync

    Gets or sets the additional method that can be used for final manipulation before the image is saved. This is called after image has been processed, but before the image has been saved to the output stream for caching. This can be used to alter the metadata of the resultant image.

    Declaration
    public Func<FormattedImage, Task> OnBeforeSaveAsync { get; set; }
    Property Value
    Type Description
    Func<FormattedImage, Task>
    | Improve this Doc View Source

    OnParseCommandsAsync

    Gets or sets the additional command parsing method that can be used to used to augment commands. This is called once the commands have been gathered and before an IImageProvider has been assigned.

    Declaration
    public Func<ImageCommandContext, Task> OnParseCommandsAsync { get; set; }
    Property Value
    Type Description
    Func<ImageCommandContext, Task>
    | Improve this Doc View Source

    OnPrepareResponseAsync

    Gets or sets the additional response method. This is called after the status code and headers have been set, but before the body has been written. This can be used to add or change the response headers.

    Declaration
    public Func<HttpContext, Task> OnPrepareResponseAsync { get; set; }
    Property Value
    Type Description
    Func<HttpContext, Task>
    | Improve this Doc View Source

    OnProcessedAsync

    Gets or sets the additional processing method. This is called after image has been processed, but before the result has been cached. This can be used to further optimize the resultant image.

    Declaration
    public Func<ImageProcessingContext, Task> OnProcessedAsync { get; set; }
    Property Value
    Type Description
    Func<ImageProcessingContext, Task>
    | Improve this Doc View Source

    UseInvariantParsingCulture

    Gets or sets a value indicating whether to use culture-independent (invariant) conversion when converting commands. If set to false the CommandParser will use the CurrentCulture.

    Declaration
    public bool UseInvariantParsingCulture { get; set; }
    Property Value
    Type Description
    Boolean
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX