Zorg.Imaging 0.5.0

dotnet add package Zorg.Imaging --version 0.5.0
                    
NuGet\Install-Package Zorg.Imaging -Version 0.5.0
                    
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="Zorg.Imaging" Version="0.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zorg.Imaging" Version="0.5.0" />
                    
Directory.Packages.props
<PackageReference Include="Zorg.Imaging" />
                    
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 Zorg.Imaging --version 0.5.0
                    
#r "nuget: Zorg.Imaging, 0.5.0"
                    
#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 Zorg.Imaging@0.5.0
                    
#: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=Zorg.Imaging&version=0.5.0
                    
Install as a Cake Addin
#tool nuget:?package=Zorg.Imaging&version=0.5.0
                    
Install as a Cake Tool

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: ImagePipeline loads, 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, FlipVertical and Flatten. Resizing works in linear light.
  • Effects: Blur, Sharpen, DrawImage for watermarks, Trim, and ToBlurHash for placeholders.
  • Animations: AnimationReader and AnimationWriter read and write animated GIF and WebP one frame at a time.
  • Smaller PNGs: PngEncoderOptions.MaxColors saves 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 ToSrgb converts to sRGB.

Documentation

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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