Klyroo.UI.Images.Local 0.1.0-preview.2

This is a prerelease version of Klyroo.UI.Images.Local.
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
                    
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="Klyroo.UI.Images.Local" Version="0.1.0-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Klyroo.UI.Images.Local" Version="0.1.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="Klyroo.UI.Images.Local" />
                    
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 Klyroo.UI.Images.Local --version 0.1.0-preview.2
                    
#r "nuget: Klyroo.UI.Images.Local, 0.1.0-preview.2"
                    
#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 Klyroo.UI.Images.Local@0.1.0-preview.2
                    
#: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=Klyroo.UI.Images.Local&version=0.1.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Klyroo.UI.Images.Local&version=0.1.0-preview.2&prerelease
                    
Install as a Cake Tool

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 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. 
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
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.