• 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 FormatUtilities

    Contains various helper methods based on the given configuration.

    Inheritance
    Object
    FormatUtilities
    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
    Assembly: SixLabors.ImageSharp.Web.dll
    Syntax
    public sealed class FormatUtilities

    Constructors

    | Improve this Doc View Source

    FormatUtilities(IOptions<ImageSharpMiddlewareOptions>)

    Initializes a new instance of the FormatUtilities class.

    Declaration
    public FormatUtilities(IOptions<ImageSharpMiddlewareOptions> options)
    Parameters
    Type Name Description
    IOptions<ImageSharpMiddlewareOptions> options

    The middleware options.

    Methods

    | Improve this Doc View Source

    GetExtensionFromContentType(String)

    Gets the correct extension for the given content type (mime-type).

    Declaration
    public string GetExtensionFromContentType(string contentType)
    Parameters
    Type Name Description
    String contentType

    The content type (mime-type).

    Returns
    Type Description
    String

    The String.

    | Improve this Doc View Source

    GetExtensionFromUri(String)

    Gets the file extension for the given image uri.

    Declaration
    public string GetExtensionFromUri(string uri)
    Parameters
    Type Name Description
    String uri

    The full request uri.

    Returns
    Type Description
    String

    The String.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX