ImageSharp is a new, fully-featured, fully managed, cross-platform, 2D graphics API developed from the ground up for .NET Standard. We recommend ImageSharp as the default Redakt image processor.
Installation
Install the ImageSharp package with the NuGet package manager or the Package Manager Console.
PM> Install-Package Redakt.Imaging.ImageSharp
Service registration
Register ImageSharp services in the ConfigureServices()
method of your project's Startup.cs
file by adding an AddImageSharpProcessing()
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.AddImageSharpProcessing();
// ... other Redakt services
}
Configuration settings
No configuration is necessary.