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

    Allows the changing of image formats.

    Inheritance
    Object
    FormatWebProcessor
    Implements
    IImageWebProcessor
    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.Processors
    Assembly: SixLabors.ImageSharp.Web.dll
    Syntax
    public class FormatWebProcessor : IImageWebProcessor

    Constructors

    | Improve this Doc View Source

    FormatWebProcessor(IOptions<ImageSharpMiddlewareOptions>)

    Initializes a new instance of the FormatWebProcessor class.

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

    The middleware configuration options.

    Fields

    | Improve this Doc View Source

    Format

    The command constant for format.

    Declaration
    public const string Format = "format"
    Field Value
    Type Description
    String

    Properties

    | Improve this Doc View Source

    Commands

    Gets the collection of recognized querystring commands.

    Declaration
    public IEnumerable<string> Commands { get; }
    Property Value
    Type Description
    IEnumerable<String>

    Methods

    | Improve this Doc View Source

    Process(FormattedImage, ILogger, IDictionary<String, String>, CommandParser, CultureInfo)

    Processes the image based on the querystring commands.

    Declaration
    public FormattedImage Process(FormattedImage image, ILogger logger, IDictionary<string, string> commands, CommandParser parser, CultureInfo culture)
    Parameters
    Type Name Description
    FormattedImage image

    The image to process.

    ILogger logger

    The type used for performing logging.

    IDictionary<String, String> commands

    The querystring collection containing the processing commands.

    CommandParser parser

    The command parser use for parting commands.

    CultureInfo culture

    The CultureInfo to use as the current parsing culture.

    Returns
    Type Description
    FormattedImage

    The FormattedImage.

    Implements

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