Baaijte.Optimizely.ImageSharp.Web 2.2.2

What's New

V2.2.1

Package now uses SixLabors.ImageSharp 3.0.2 and SixLabors.ImageSharp.Web 3.0.1. Package now also references SixLabors.ImageSharp.Web.Providers.Azure

V2.2.0

Package now uses SixLabors.ImageSharp 3.0.1 and SixLabors.ImageSharp.Web 3.0.1

License

Note As of version 2.0.0 this package targets .NET6.0 and Optimizely.CMS.Core version 12.5.0 or higher

Installation

Baaijte.OptimizelyImageSharp.Web is installed via the Optimizely NuGet feed

Package Manager

PM > Install-Package Baaijte.Optimizely.ImageSharp.Web -Version VERSION_NUMBER

.NET CLI

dotnet add package Baaijte.Optimizely.ImageSharp.Web --version VERSION_NUMBER

Setup and Configuration

Once installed you will need to add the following code to ConfigureServices and Configure in your Startup.cs file.

This installs the the default service and options.

public void ConfigureServices(IServiceCollection services) {
    // Add the default service and options.
    services.AddBaaijteOptimizelyImageSharp();
}

public void Configure(IApplicationBuilder app, IWebHostEnvironment env) {

    // Add the image processing middleware.
    app.UseBaaijteOptimizelyImageSharp();
}

DO NOT add other SixLabors.ImageSharp.Web settings!!

Also add using Baaijte.Optimizely.ImageSharp.Web; at the top of your Startup.cs file if it was not automatically added.

Configuration for use with DXP

public void ConfigureServices(IServiceCollection services) {
    services.AddImageSharp()
        .Configure<AzureBlobStorageCacheOptions>(options =>
        {
            options.ConnectionString = _configuration.GetConnectionString("EPiServerAzureBlobs");
            options.ContainerName = "mysitemedia";
        })
        .ClearProviders()
        .AddProvider<BlobImageProvider>()
        .SetCache<AzureBlobStorageCache>();
}

public void Configure(IApplicationBuilder app, IWebHostEnvironment env) {

    // Add the image processing middleware.
    app.UseBaaijteOptimizelyImageSharp();
}

Showing the top 5 packages that depend on Baaijte.Optimizely.ImageSharp.Web.

Packages Downloads
Eshn.Plugins.FocalPoint
This package supports user choose focal point of an image then cropping bases on it
218

From version 2.0 this package is targeting .NET 6

Version Downloads Last updated
3.0.1 774 06/26/2024
3.0.0 4,859 03/18/2024
2.2.2 13,866 01/12/2024
2.2.1 1,864 11/28/2023
2.2.0 11,985 08/22/2023
2.1.3 17,894 05/25/2023
2.1.2 24,065 11/02/2022
2.1.1 4,611 09/11/2022
2.1.0 811 09/02/2022
2.0.0 23,635 04/22/2022
1.0.6 1,624 01/18/2022
1.0.5 551 12/07/2021
1.0.4 67 12/02/2021
1.0.3 212 10/21/2021
1.0.2 59 10/20/2021
1.0.0 75 10/07/2021