PhotoSauce.NativeCodecs.Libheif 1.12.0-preview3

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
.NET 6.0 .NET Standard 2.0 .NET Framework 4.6.1
This is a prerelease version of PhotoSauce.NativeCodecs.Libheif.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package PhotoSauce.NativeCodecs.Libheif --version 1.12.0-preview3
NuGet\Install-Package PhotoSauce.NativeCodecs.Libheif -Version 1.12.0-preview3
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="PhotoSauce.NativeCodecs.Libheif" Version="1.12.0-preview3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PhotoSauce.NativeCodecs.Libheif --version 1.12.0-preview3
#r "nuget: PhotoSauce.NativeCodecs.Libheif, 1.12.0-preview3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install PhotoSauce.NativeCodecs.Libheif as a Cake Addin
#addin nuget:?package=PhotoSauce.NativeCodecs.Libheif&version=1.12.0-preview3&prerelease

// Install PhotoSauce.NativeCodecs.Libheif as a Cake Tool
#tool nuget:?package=PhotoSauce.NativeCodecs.Libheif&version=1.12.0-preview3&prerelease


This MagicScaler plugin wraps the libheif codec for HEIC images, such as those created by Apple devices running iOS 11 or later. This plugin supports only decode, using the libde265 HEVC decoder.

Be aware that the HEVC video coding standard used in HEIC images is burdened by numerous patents which may vary in validity by country.

By using this plugin, you acknowledge that your use of the codec is permitted royalty free or that you have purchased an appropriate license.

Windows 10 and 11 include a HEIF codec by default, but it may not function for HEIC images without purchase of an HEVC extension from the Microsoft Store, and it may not function for all users or apps. You may need to unregister the Windows HEIF codec in order to use this plugin for decode.


A compatible libheif binary must be present for this plugin to function. For convenience, the NuGet package includes native binaries for Windows 10+ (x86, x64, and ARM64) and Ubuntu 20.04 (x64 and ARM64).


Codec Registration

To register the codec, call the UseLibheif extension method from your CodecManager.Configure action at app startup. By default, the plugin will remove/replace the Windows HEIF codec if it is present.

using PhotoSauce.MagicScaler;
using PhotoSauce.NativeCodecs.Libheif;

CodecManager.Configure(codecs => {

Using the Codec

Once registered, the codec will automatically detect and decode compatible images.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
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
1.13.0-preview1 78 11/8/2022
1.12.0-preview3 76 8/11/2022
1.12.0-Preview2 88 4/18/2022
1.12.0-Preview1 58 4/18/2022

See for release-specific notes.