ImageSharp.Web

High performance ASP.NET Core image processing middleware.

Transform your web applications with ImageSharp.Web, the ultimate ASP.NET Core middleware for high-speed image processing. In just minutes, unlock the power to handle thousands of requests per second, seamlessly blending innovation with efficiency.

Blazingly fast straight out of the box

Leveraging the robust capabilities of ASP.NET Core .NET 6+ and the advanced imaging technology of ImageSharp, ImageSharp.Web offers a seamless integration experience, ready to enhance your web applications within minutes. Engineered for high performance, it efficiently handles tens of thousands of requests per second, ensuring intelligent image processing at unparalleled speeds.

ImageSharp.Web isn't just a middleware; it's a powerhouse tool designed to elevate your web projects to the next level of efficiency and innovation.

PM > Install-Package SixLabors.ImageSharp.Web
public void ConfigureServices(IServiceCollection services)
{
    services.AddImageSharp();
}

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    app.UseImageSharp();
}
          

Sheer elegance in its simplicity

Our processing commands strike the perfect balance between power and simplicity, ensuring predictability in every operation. With just a few keystrokes, you can serve optimized images effortlessly, streamlining your workflow without compromising on quality or performance.

// Resize
{PATH_TO_YOUR_IMAGE}?width=300
{PATH_TO_YOUR_IMAGE}?width=300&height=120&rxy=30,30
{PATH_TO_YOUR_IMAGE}?width=50&height=50&rsampler=nearest&rmode=stretch

// Format
{PATH_TO_YOUR_IMAGE}?format=jpg
{PATH_TO_YOUR_IMAGE}?format=gif
{PATH_TO_YOUR_IMAGE}?format=png
{PATH_TO_YOUR_IMAGE}?format=bmp
{PATH_TO_YOUR_IMAGE}?format=tga

Designed for any environment

Our meticulously designed dependency injection architecture offers unparalleled flexibility, enabling you to effortlessly customize and swap out components to perfectly align with your unique business requirements. This approach not only simplifies integration but also empowers you to tailor the system to your specific needs, ensuring a more efficient, adaptable, and scalable solution. With this architecture, your business gains the agility to evolve and the capability to innovate, making it an ideal choice for dynamic and growth-oriented environments

PM > SixLabors.ImageSharp.Web.Providers.Azure
public void ConfigureServices(IServiceCollection services)
{
    services.AddImageSharp()
            .Configure<AzureBlobStorageCacheOptions>(options =>
            {
                options.ConnectionString = {AZURE_CONNECTION_STRING};
                options.ContainerName = {AZURE_CONTAINER_NAME};

                // Optionally create the cache container on startup if not already created.
                AzureBlobStorageCache.CreateIfNotExists(options, PublicAccessType.None);
            })
            .SetCache<AzureBlobStorageImageCache>();
}