RecursiveAI.OneImage.Web
1.6.0
See the version list below for details.
dotnet add package RecursiveAI.OneImage.Web --version 1.6.0
NuGet\Install-Package RecursiveAI.OneImage.Web -Version 1.6.0
<PackageReference Include="RecursiveAI.OneImage.Web" Version="1.6.0" />
<PackageVersion Include="RecursiveAI.OneImage.Web" Version="1.6.0" />
<PackageReference Include="RecursiveAI.OneImage.Web" />
paket add RecursiveAI.OneImage.Web --version 1.6.0
#r "nuget: RecursiveAI.OneImage.Web, 1.6.0"
#:package RecursiveAI.OneImage.Web@1.6.0
#addin nuget:?package=RecursiveAI.OneImage.Web&version=1.6.0
#tool nuget:?package=RecursiveAI.OneImage.Web&version=1.6.0
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 | Versions 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. |
-
net10.0
- RecursiveAI.OneImage (>= 1.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
See CHANGELOG.md in the repository.