Klyroo.UI.Images.Local
0.1.0-preview.2
dotnet add package Klyroo.UI.Images.Local --version 0.1.0-preview.2
NuGet\Install-Package Klyroo.UI.Images.Local -Version 0.1.0-preview.2
<PackageReference Include="Klyroo.UI.Images.Local" Version="0.1.0-preview.2" />
<PackageVersion Include="Klyroo.UI.Images.Local" Version="0.1.0-preview.2" />
<PackageReference Include="Klyroo.UI.Images.Local" />
paket add Klyroo.UI.Images.Local --version 0.1.0-preview.2
#r "nuget: Klyroo.UI.Images.Local, 0.1.0-preview.2"
#:package Klyroo.UI.Images.Local@0.1.0-preview.2
#addin nuget:?package=Klyroo.UI.Images.Local&version=0.1.0-preview.2&prerelease
#tool nuget:?package=Klyroo.UI.Images.Local&version=0.1.0-preview.2&prerelease
Klyroo.UI.Images.Local
An ASP.NET Core endpoint that resizes and converts images on your own server with libvips
(through NetVips), and the local provider that makes KlyImage, KlyAvatar,
KlyBlogPost and the other image components of Klyroo.UI use it.
dotnet add package Klyroo.UI.Images.Local --prerelease
using Klyroo.UI;
builder.Services.AddKlyrooUi();
builder.Services.AddKlyrooImagesLocal(o =>
{
o.CacheDirectory = "/var/cache/my-app/images"; // survives restarts
o.Version = "2026-11-20"; // changes when the images change: immutable caching
o.AllowedRemoteHosts.Add("images.example.com"); // none by default: no remote image is fetched
});
var app = builder.Build();
app.MapKlyrooImages(); // GET _klyroo/img?src=/img/team.jpg&w=640&f=webp, below the path base if any
In a Blazor Web App that renders in WebAssembly, register the URL builder in the shared client code too:
o.Images.AddLocal(makeDefault: true) from Klyroo.UI.Images. The endpoint is relative to <base href>, so an app served below
a path base reaches its own optimizer; call app.UseRouting() right after UsePathBase, and UseForwardedHeaders first behind a
reverse proxy. The endpoint is meant to face the internet, so every request is bounded: the
limits are in the guide.
NetVips.Native bundles the native libvips binaries and the libraries they link, which are
LGPL licensed. NetVips itself is MIT. See the
repository README.
| 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. net11.0 is compatible. |
-
net10.0
- Klyroo.UI.Images (>= 0.1.0-preview.2)
- NetVips (>= 3.2.0)
- NetVips.Native (>= 8.18.8)
-
net11.0
- Klyroo.UI.Images (>= 0.1.0-preview.2)
- NetVips (>= 3.2.0)
- NetVips.Native (>= 8.18.8)
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 |
|---|---|---|
| 0.1.0-preview.2 | 34 | 11/29/2026 |
| 0.1.0-preview.1 | 37 | 11/29/2026 |
See CHANGELOG.md in the Klyroo.UI package. The native libvips binaries of NetVips.Native are LGPL licensed.