Zorg.Imaging
0.5.0
dotnet add package Zorg.Imaging --version 0.5.0
NuGet\Install-Package Zorg.Imaging -Version 0.5.0
<PackageReference Include="Zorg.Imaging" Version="0.5.0" />
<PackageVersion Include="Zorg.Imaging" Version="0.5.0" />
<PackageReference Include="Zorg.Imaging" />
paket add Zorg.Imaging --version 0.5.0
#r "nuget: Zorg.Imaging, 0.5.0"
#:package Zorg.Imaging@0.5.0
#addin nuget:?package=Zorg.Imaging&version=0.5.0
#tool nuget:?package=Zorg.Imaging&version=0.5.0
Zorg.Imaging
Managed image decoding, resizing and encoding for .NET 10, written in C# only, with no native binaries and no dependencies. Native AOT and trimming work.
using Zorg.Imaging;
await ImagePipeline.Load("photo.jpg")
.Fit(1200, 1200)
.SaveAsync("photo.webp");
Early releases: the API may still change before 1.0.
Close to the C tools
Measured on one core over about 170 test images against the reference tools:
| Output | Size | Time | Quality |
|---|---|---|---|
| Lossy WebP vs cwebp | 3% smaller | about the same | 1.2 dB closer to the source at cwebp's size |
| JPEG vs cjpeg | 9% smaller | 3.4 times faster | the same |
| Lossless WebP vs cwebp | 1% smaller | 1.6 times faster | lossless |
| PNG vs libvips | 19% smaller | 7 times faster | lossless |
| 256-colour PNG vs pngquant | 2% larger | 2 times faster | 1.5 points better by SSIMULACRA 2 (perceptual) |
JPEG decoding gives the same pixels as libjpeg-turbo. The details are in docs/performance.md.
What it does
- Formats: PNG, JPEG, WebP (lossy, lossless and near-lossless) and GIF, decoded and encoded. BMP and TIFF are decoded. AVIF, HEIC and JPEG XL are recognised but not decoded.
- Pipeline:
ImagePipelineloads, fits and saves in one chain. JPEG shrinks on load, so a thumbnail never decodes every pixel. - Operations:
Resize,Fit,Fill,Pad,Crop,Rotate,FlipHorizontal,FlipVerticalandFlatten. Resizing works in linear light. - Effects:
Blur,Sharpen,DrawImagefor watermarks,Trim, andToBlurHashfor placeholders. - Animations:
AnimationReaderandAnimationWriterread and write animated GIF and WebP one frame at a time. - Smaller PNGs:
PngEncoderOptions.MaxColorssaves a palette PNG with full alpha.
Safe defaults for the web
- Untrusted files: dimensions, frame counts and sizes are checked against limits before anything is allocated, and a bad file throws an
ImageException, never something unrelated. - Metadata is stripped unless you ask for it. It can be kept, or kept without GPS position and camera details.
- Orientation from EXIF is applied.
- Colour is never silently shifted: colour spaces are kept, and
ToSrgbconverts to sRGB.
Documentation
| 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
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Zorg.Imaging:
| Package | Downloads |
|---|---|
|
Zorg.Imaging.SystemCodecs
AVIF and HEIC decoding for Zorg.Imaging through the operating system's own decoders: Windows Imaging Component on Windows, ImageIO on macOS. Ships no codec and no native binaries. |
|
|
Zorg.Pdf.Imaging
Image handling for Zorg.Pdf built on Zorg.Imaging: WebP, GIF, BMP and TIFF, EXIF orientation, sRGB conversion, and photos shrunk to the resolution they're printed at. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.5.0 | 177 | 11/14/2026 |
| 0.4.0 | 173 | 11/14/2026 |
| 0.3.0 | 192 | 11/14/2026 |
| 0.2.0 | 110 | 11/11/2026 |
| 0.1.0 | 94 | 11/11/2026 |
| 0.1.0-preview.6 | 69 | 11/11/2026 |
| 0.1.0-preview.5 | 62 | 11/10/2026 |
| 0.1.0-preview.4 | 59 | 11/9/2026 |
| 0.1.0-preview.3 | 61 | 11/8/2026 |