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

// Install HurlbertVisionLab.LibRawWrapper as a Cake Tool
#tool nuget:?package=HurlbertVisionLab.LibRawWrapper&version=

LibRawWrapper is a single-file C++/CLI assembly containing the LibRaw library for reading RAW files from digital photo cameras (CRW/CR2, NEF, RAF, DNG, MOS, KDC, DCR, etc, virtually all RAW formats are supported). Supports both .NET Framework and .NET Core targets.

⚠️ This is x64 release build. Since this is mixed code assembly, it will only load into 64-bit processes.

The LibRaw Wrapper is aiming at image processing pipeline, giving access to 32-bit floating or 16-bit integer data (using BitmapSource of Rgb128Float or Rgb48 pixel formats, or using pointers). If you only want to display RAW images to the user, install Raw Image Extension by Microsoft instead.

The assembly has two main classes:

  • HurlbertVisionLab.LibRawWrapper.LibRawBitmapDecoder provides high-level, familiar API model
  • HurlbertVisionLab.LibRawWrapper.Native.LibRawProcessor is a close wrapper around libraw, see its documentation here.

Examples available on GitHub.

Known issues

  • Access to makernotes is not implemeneted.
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
.NET Framework net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6

    • No dependencies.
  • net6.0-windows7.0

    • No dependencies.

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,009 6/14/2023 745 3/31/2023 1,014 7/8/2021