RecursiveAI.OneImage.Web 1.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package RecursiveAI.OneImage.Web --version 1.3.0
                    
NuGet\Install-Package RecursiveAI.OneImage.Web -Version 1.3.0
                    
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="RecursiveAI.OneImage.Web" Version="1.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RecursiveAI.OneImage.Web" Version="1.3.0" />
                    
Directory.Packages.props
<PackageReference Include="RecursiveAI.OneImage.Web" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RecursiveAI.OneImage.Web --version 1.3.0
                    
#r "nuget: RecursiveAI.OneImage.Web, 1.3.0"
                    
#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.
#:package RecursiveAI.OneImage.Web@1.3.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RecursiveAI.OneImage.Web&version=1.3.0
                    
Install as a Cake Addin
#tool nuget:?package=RecursiveAI.OneImage.Web&version=1.3.0
                    
Install as a Cake Tool

OneImage.Web

ASP.NET Core middleware that resizes, crops, converts and recompresses images on request, driven by URL commands, with a disk cache, conditional requests (ETag, 304), HMAC-signed URLs and request limits. Built on OneImage, a pure-managed image library: a thumbnail of a 24 MP JPEG is decoded at reduced size, and nothing native is involved.

Install

dotnet add package RecursiveAI.OneImage.Web

Target framework net10.0.

Use

using OneImage.Web;

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddOneImage();

var app = builder.Build();
app.UseOneImage();      // before UseStaticFiles
app.UseStaticFiles();
app.Run();
/photos/cat.jpg?width=400
/photos/cat.jpg?w=300&h=300&fit=cover
/photos/cat.jpg?width=800&format=webp&q=80

The ImageSharp.Web query names (rmode, rsampler, xy, bgcolor and so on) work too, which makes moving from ImageSharp.Web a matter of swapping the registration calls.

  • Safe by default: bounded output and source sizes, bounded concurrency, EXIF/GPS removed, unknown parameters ignored, nothing outside the provider root served.
  • Signed URLs (HMAC-SHA-256/384/512), a presets-only mode, a Razor tag helper.
  • Providers for the web root, any folder and any IFileProvider, or your own; cache, cache key and hash are replaceable.
  • No reflection; trimmable and NativeAOT-compatible.

Full guide: commands, ImageSharp.Web compatibility, security defaults, caching

License: MIT OR Apache-2.0.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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.7.0 0 10/23/2026
1.6.0 0 10/23/2026
1.5.0 1 10/23/2026
1.4.0 40 10/23/2026
1.3.0 48 10/23/2026
1.2.0 40 10/22/2026
1.1.0 41 10/22/2026

See CHANGELOG.md in the repository.