dotnet add package CharLS.Native --version 3.0.1
NuGet\Install-Package CharLS.Native -Version 3.0.1
<PackageReference Include="CharLS.Native" Version="3.0.1" />
paket add CharLS.Native --version 3.0.1
#r "nuget: CharLS.Native, 3.0.1"
// Install CharLS.Native as a Cake Addin #addin nuget:?package=CharLS.Native&version=3.0.1 // Install CharLS.Native as a Cake Tool #tool nuget:?package=CharLS.Native&version=3.0.1
CharLS.Native .NET is an adapter assembly that provides access to the native CharLS JPEG-LS C++ implementation for .NET based applications.
JPEG-LS (ISO-14495-1) is a lossless/near-lossless compression standard for continuous-tone images.
- Support for .NET 7.0 and .NET 6.0.
- Support for the .NET platforms: Windows, Linux and macOS.
How to use
CharLS.Native can be added to your C# project using the dotnet command line or the NuGet Package Manager in Visual Studio.
Install using the dotnet command line
dotnet add package CharLS.Native
Windows specific installation steps
The NuGet package comes with prebuilt CharLS DLLs for x86, x64 and ARM64 targets. The Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 (v14.34 or newer) needs to be installed on the target system.
Linux specific installation steps
A prebuild CharLS shared library can be installed using the Apt package manager:
sudo apt install libcharls2
MacOS specific installation steps
A prebuild CharLS shared library can be installed using the Homebrew package manager:
brew install team-charls/tap/charls
How to use the C# classes in the NuGet package
A sample application is included in the GitHub repository that demonstrates how to convert common image types like .bmp, .png and .jpg to .jls (JPEG-LS).
About the JPEG-LS image compression standard
More information about JPEG-LS can be found in the README from the C++ CharLS project. This repository also contains instructions how the build the native C++ CharLS shared library from source.
|.NET||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|
- No dependencies.
- No dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
- Latest version of CharLS Windows DLLs v2.4.1.