CharLS.Native 4.0.0

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

// Install CharLS.Native as a Cake Tool
#tool nuget:?package=CharLS.Native&version=4.0.0                

CharLS.Native .NET

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.

Features

  • Support for .NET 9.0, .NET 8.0 and .NET Framework 4.8.
  • 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.42 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.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

  • net8.0

    • No dependencies.
  • net9.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
4.0.0 126 11/12/2024
3.2.0 1,051 11/24/2023
3.1.0 289 4/14/2023
3.0.1 2,799 1/2/2023
3.0.0 299 12/31/2022
2.0.0 478 6/5/2022
1.2.0 1,883 12/5/2021
1.1.0 588 5/8/2021
1.0.0 506 1/23/2021

4.0.0
- Added support for .NET 9.0
- Removed support for .NET 6.0
- Removed support for .NET 7.0