Elmahdi.ImageSharp.Web.Providers.S3 1.0.1

dotnet add package Elmahdi.ImageSharp.Web.Providers.S3 --version 1.0.1                
NuGet\Install-Package Elmahdi.ImageSharp.Web.Providers.S3 -Version 1.0.1                
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="Elmahdi.ImageSharp.Web.Providers.S3" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Elmahdi.ImageSharp.Web.Providers.S3 --version 1.0.1                
#r "nuget: Elmahdi.ImageSharp.Web.Providers.S3, 1.0.1"                
#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 Elmahdi.ImageSharp.Web.Providers.S3 as a Cake Addin
#addin nuget:?package=Elmahdi.ImageSharp.Web.Providers.S3&version=1.0.1

// Install Elmahdi.ImageSharp.Web.Providers.S3 as a Cake Tool
#tool nuget:?package=Elmahdi.ImageSharp.Web.Providers.S3&version=1.0.1                

Elmahdi.Phone

Nuget downloads GitHub license

An Image provider for Six Labors ImageSharp.Web

This provider allows the processing and serving of image files from Amazon S3 or DigitalOcean Spaces and is available as an external package installable via NuGet.

Installation

PM> Install-Package Elmahdi.ImageSharp.Web.Providers.S3 -Version VERSION_NUMBER
> dotnet add package Elmahdi.ImageSharp.Web.Providers.S3 --version VERSION_NUMBER

Usage

Once installed the provider AzureBlobContainerClientOptions can be configured as follows:

using Elmahdi.ImageSharp.Web.Providers.S3.Providers;
using SixLabors.ImageSharp.Web.DependencyInjection;

public void ConfigureServices(IServiceCollection services)
{
    ...
    services
        .AddImageSharp()
        .Configure<S3StorageImageProviderOptions>(options => { 
            options.S3Containers.Add(new S3ClientOptions { 
                AccessKeyId = "", // Access Key Id
                SecretAccessKey = "", // Secret Access Key
                BucketName = "", // Bucket Name, 
                EndpointUrl = "" // Endpoint Url            
            }); 
        })
        .ClearProviders()
        .AddProvider<S3StorageImageProvider>();
}

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    ...
    app.UseImageSharp(); // Add this BEFORE app.UseStaticFiles();
    ...
}

Url requests are matched in accordance to the following rule:

/{BucketName}/{FileName}

To do

  • Add tests
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 347 10/21/2021
1.0.0 284 10/21/2021