• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Web
      • CaseHandlingUriBuilder
      • CaseHandlingUriBuilder.CaseHandling
      • CommandHandling
      • ExifOrientationUtilities
      • Format
      • FormatCommand
      • FormatUtilities
      • FormattedImage
      • HMACUtilities
      • ImageCacheMetadata
      • ImageMetadata
      • RequestAuthorizationUtilities
      • Resampler
      • ResamplerCommand
    • SixLabors.ImageSharp.Web.Caching
      • ICacheHash
      • ICacheKey
      • IImageCache
      • LegacyV1CacheKey
      • PhysicalFileSystemCache
      • PhysicalFileSystemCacheOptions
      • SHA256CacheHash
      • UriAbsoluteCacheKey
      • UriAbsoluteLowerInvariantCacheKey
      • UriRelativeCacheKey
      • UriRelativeLowerInvariantCacheKey
    • SixLabors.ImageSharp.Web.Commands
      • CommandCollection
      • CommandCollectionExtensions
      • CommandParser
      • IRequestParser
      • PresetOnlyQueryCollectionRequestParser
      • PresetOnlyQueryCollectionRequestParserOptions
      • QueryCollectionRequestParser
    • SixLabors.ImageSharp.Web.Commands.Converters
      • ArrayConverter<T>
      • ColorConverter
      • EnumConverter
      • ICommandConverter
      • ICommandConverter<T>
      • IntegralNumberConverter<T>
      • ListConverter<T>
      • SimpleCommandConverter<T>
    • SixLabors.ImageSharp.Web.DependencyInjection
      • ApplicationBuilderExtensions
      • IImageSharpBuilder
      • ImageSharpBuilderExtensions
      • ServiceCollectionExtensions
    • SixLabors.ImageSharp.Web.Middleware
      • ImageCommandContext
      • ImageProcessingContext
      • ImageSharpMiddleware
      • ImageSharpMiddlewareOptions
    • SixLabors.ImageSharp.Web.Processors
      • AutoOrientWebProcessor
      • BackgroundColorWebProcessor
      • FormatWebProcessor
      • IImageWebProcessor
      • QualityWebProcessor
      • ResizeWebProcessor
    • SixLabors.ImageSharp.Web.Providers
      • FileProviderImageProvider
      • IImageProvider
      • PhysicalFileSystemProvider
      • PhysicalFileSystemProviderOptions
      • ProcessingBehavior
      • WebRootImageProvider
    • SixLabors.ImageSharp.Web.Resolvers
      • FileProviderImageResolver
      • IImageCacheResolver
      • IImageResolver
      • PhysicalFileSystemCacheResolver
    • SixLabors.ImageSharp.Web.Synchronization
      • AsyncKeyLock<TKey>
      • AsyncKeyReaderWriterLock<TKey>
      • AsyncLock
      • AsyncReaderWriterLock
      • RefCountedConcurrentDictionary<TKey, TValue>
    • SixLabors.ImageSharp.Web.TagHelpers
      • HmacTokenTagHelper
      • ImageTagHelper

    Class QualityWebProcessor

    Allows the setting of quality for the jpeg and webp image format.

    Inheritance
    object
    QualityWebProcessor
    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 QualityWebProcessor : IImageWebProcessor

    Fields

    | Edit this page View Source

    Quality

    The command constant for quality.

    Declaration
    public const string Quality = "quality"
    Field Value
    Type Description
    string

    Properties

    | Edit this page View Source

    Commands

    Gets the collection of recognized command keys.

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

    Methods

    | Edit this page View Source

    Process(FormattedImage, ILogger, CommandCollection, CommandParser, CultureInfo)

    Processes the image based on the given commands.

    Declaration
    public FormattedImage Process(FormattedImage image, ILogger logger, CommandCollection commands, CommandParser parser, CultureInfo culture)
    Parameters
    Type Name Description
    FormattedImage image

    The image to process.

    ILogger logger

    The type used for performing logging.

    CommandCollection commands

    The ordered 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.

    | Edit this page View Source

    RequiresTrueColorPixelFormat(CommandCollection, CommandParser, CultureInfo)

    Returns a value indicating whether the image to be processed should be decoded using a 32 bit True Color pixel format - 8 bits per color component plus an 8 bit alpha channel https://en.wikipedia.org/wiki/Color_depth#True_color_(24-bit).

    This method is used to determine whether optimizations can be enabled to reduce memory consumption during processing.

    Declaration
    public bool RequiresTrueColorPixelFormat(CommandCollection commands, CommandParser parser, CultureInfo culture)
    Parameters
    Type Name Description
    CommandCollection commands

    The ordered 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
    bool

    The bool indicating whether a 32 bit True Color pixel format is required.

    Implements

    IImageWebProcessor
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX