Tharga.Team.Images
3.5.1
dotnet add package Tharga.Team.Images --version 3.5.1
NuGet\Install-Package Tharga.Team.Images -Version 3.5.1
<PackageReference Include="Tharga.Team.Images" Version="3.5.1" />
<PackageVersion Include="Tharga.Team.Images" Version="3.5.1" />
<PackageReference Include="Tharga.Team.Images" />
paket add Tharga.Team.Images --version 3.5.1
#r "nuget: Tharga.Team.Images, 3.5.1"
#:package Tharga.Team.Images@3.5.1
#addin nuget:?package=Tharga.Team.Images&version=3.5.1
#tool nuget:?package=Tharga.Team.Images&version=3.5.1
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 | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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.1)
-
net9.0
- Microsoft.Extensions.Options (>= 10.0.10)
- SixLabors.ImageSharp (>= 3.1.12)
- Tharga.Team (>= 3.5.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.