Baaijte.Optimizely.ImageSharp.Web 2.1.3

dotnet add package Baaijte.Optimizely.ImageSharp.Web --version 2.1.3
NuGet\Install-Package Baaijte.Optimizely.ImageSharp.Web -Version 2.1.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Baaijte.Optimizely.ImageSharp.Web" Version="2.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Baaijte.Optimizely.ImageSharp.Web --version 2.1.3
#r "nuget: Baaijte.Optimizely.ImageSharp.Web, 2.1.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Baaijte.Optimizely.ImageSharp.Web as a Cake Addin
#addin nuget:?package=Baaijte.Optimizely.ImageSharp.Web&version=2.1.3

// Install Baaijte.Optimizely.ImageSharp.Web as a Cake Tool
#tool nuget:?package=Baaijte.Optimizely.ImageSharp.Web&version=2.1.3

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();
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Baaijte.Optimizely.ImageSharp.Web:

Package Downloads
Forte.EpiResponsivePicture

Smart responsive images in EPiServer with ImageResizing.Net and Focal point

Eshn.Plugins.FocalPoint

This package supports user choose focal point of an image then cropping bases on it

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Baaijte.Optimizely.ImageSharp.Web:

Repository Stars
episerver/Foundation
Foundation offers a starting point that is intuitive, well-structured and modular allowing developers to explore CMS, Commerce, Personalization, Search and Navigation, Data Platform and Experimentation.
Version Downloads Last updated
2.1.3 25,631 5/16/2023

From version 2.0 this package is targeting .NET 6