SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. SkiaSharp is an alternative to the ImageSharp or System.Drawing processors.

The SkiaSharp processor is currently the only Redakt image processor that supports WebP encoding.

Installation

Install the SkiaSharp package with the NuGet package manager or the Package Manager Console.

PM> Install-Package Redakt.Imaging.SkiaSharp

Service registration

Register SkiaSharp services in the ConfigureServices() method of your project's Startup.cs file by adding an AddSkiaSharpProcessing() call to the Redakt builder instance. The order in which services are added to the Redakt builder is not important.

public void ConfigureServices(IServiceCollection services)
{
    // ... framework and other services here

    var builder = services.AddRedakt();
    builder.AddSkiaSharpProcessing();
    // ... other Redakt services
}

Configuration settings

No configuration is necessary.