Zorg.Imaging.SystemCodecs 0.2.0

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

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. It ships no codec and no native binaries, so it carries no HEVC or AV1 code of its own. Meant for desktop apps on Windows and macOS.

using Zorg.Imaging;

ImageDefaults.Codecs = SystemCodecs.All; // once, at start-up

using Image photo = Image.Decode(File.ReadAllBytes("IMG_0001.HEIC"));

Early releases: the API may still change before 1.0.

What each system needs

HEIC AVIF
Windows 10 or 11 HEIF Image Extension and HEVC Video Extensions from the Microsoft Store (some PCs have them preinstalled; Windows 11 24H2 includes them) HEIF Image Extension and the free AV1 Video Extension
macOS 10.13 or later 13 or later
Linux, Windows Server Not available Not available

SystemCodecs.Heif.Availability says whether it works here and, if not, what to install. A file that needs a missing codec fails with UnsupportedImageFormatException and that reason.

Safety

Zorg.Imaging reads each file's boxes itself and checks the size and tile count against ImageLimits before the operating system sees the file. The decoding itself is the operating system's native code: it runs in your process, can't be cancelled or timed out once started, and a fault in it can't be caught. Keep the system updated; the Store updates the Windows extensions and macOS updates ImageIO.

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.

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.2.0 41 11/11/2026