Tharga.Team.Images
3.5.2
dotnet add package Tharga.Team.Images --version 3.5.2
NuGet\Install-Package Tharga.Team.Images -Version 3.5.2
<PackageReference Include="Tharga.Team.Images" Version="3.5.2" />
<PackageVersion Include="Tharga.Team.Images" Version="3.5.2" />
<PackageReference Include="Tharga.Team.Images" />
paket add Tharga.Team.Images --version 3.5.2
#r "nuget: Tharga.Team.Images, 3.5.2"
#:package Tharga.Team.Images@3.5.2
#addin nuget:?package=Tharga.Team.Images&version=3.5.2
#tool nuget:?package=Tharga.Team.Images&version=3.5.2
Tharga.Team.Images
Image processing for Tharga Team icons. Registers an IIconProcessor (backed by
ImageSharp) that automatically downscales uploaded icons
larger than the configured maximum, instead of rejecting them.
Registration
builder.Services.AddThargaImageProcessing();
The built-in icon store runs the processor before validating/storing. Any uploaded image (team or user)
wider or taller than IconOptions.MaxDimension (default 256px) is resized to fit within that box —
aspect ratio preserved, never upscaled — and re-encoded as PNG. Images already within the box, and
formats ImageSharp can't decode (e.g. SVG), pass through unchanged.
Configure the maximum via the platform options:
builder.AddThargaPlatform(o => o.Icon.MaxDimension = 256);
| 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
- Microsoft.Extensions.Options (>= 10.0.10)
- SixLabors.ImageSharp (>= 3.1.12)
- Tharga.Team (>= 3.5.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.