Class FormatWebProcessor
Allows the changing of image formats.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Web.Processors
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public class FormatWebProcessor : IImageWebProcessor
  Constructors
| Improve this Doc View SourceFormatWebProcessor(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 SourceFormat
The command constant for format.
Declaration
public const string Format = "format"
  Field Value
| Type | Description | 
|---|---|
| String | 
Properties
| Improve this Doc View SourceCommands
Gets the collection of recognized querystring commands.
Declaration
public IEnumerable<string> Commands { get; }
  Property Value
| Type | Description | 
|---|---|
| IEnumerable<String> | 
Methods
| Improve this Doc View SourceProcess(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.  |