LibHeifSharp 2.4.0

.NET Standard 1.3 .NET Framework 4.6
dotnet add package LibHeifSharp --version 2.4.0
NuGet\Install-Package LibHeifSharp -Version 2.4.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="LibHeifSharp" Version="2.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LibHeifSharp --version 2.4.0
#r "nuget: LibHeifSharp, 2.4.0"
#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 LibHeifSharp as a Cake Addin
#addin nuget:?package=LibHeifSharp&version=2.4.0

// Install LibHeifSharp as a Cake Tool
#tool nuget:?package=LibHeifSharp&version=2.4.0

llibheif-sharp provides .NET bindings for libheif.
It is built against .NET Standard 1.3, and should work on any supported .NET platform that has a libheif shared library.


  • Supports decoding
    • Top-level images
    • Thumbnails
    • Depth images
    • Vendor-specific auxiliary images
  • Supports encoding
    • Top-level images
    • Thumbnails
  • Supports reading and writing meta-data


API Documentation
Building libheif on Windows with vcpkg

Sample Applications

The libheif-sharp-samples repository contains decoder and encoder samples that demonstrate the use of the library.


The libheif shared library must be named libheif in order for it to be found by P/Invoke.

The minimum supported libheif version is 1.9.0.


This project is licensed under the terms of the GNU Lesser General Public License version 3.0.

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 netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
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.
  • .NETFramework 4.6

    • No dependencies.
  • .NETStandard 1.3

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on LibHeifSharp:

Package Downloads

HEIF/AVIF decoder for ImageSharp

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.4.0 2,959 9/10/2022
2.3.1 153 9/9/2022
2.3.0 156 9/4/2022
2.2.0 3,887 2/23/2022
2.1.0 18,389 5/20/2021
2.0.2 373 12/30/2020
2.0.1 310 11/25/2020
2.0.0 322 11/11/2020
1.0.0 327 10/21/2020

v2.4.0 - 2022-09-10


-   A SetMaximumDecodingThreads method to the HeifContext class.


-   The P/Invoke name used by the SetMaximumImageSizeLimit method.
-   Various issues with the documentation.