JBig2Decoder.NETStandard 1.5.0

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

// Install JBig2Decoder.NETStandard as a Cake Tool
#tool nuget:?package=JBig2Decoder.NETStandard&version=1.5.0

JBig2Decoder.NETStandard

Converts a JBIG2 (*.jb2) image to a RGB byte array. JBIG2 images offer lossless compression for bi-level (black and white) images. The spec was released in 2000, at the peak of fax machine technology.

There are no package dependencies and it is compiled for:

  1. .NET 8.0
  2. .NET 6.0
  3. .NET Standard 2.0
  4. .NET Framework 4.8

Usage

string file = "pic.jb2";
var input = File.ReadAllBytes(file);
var jbig = new JBIG2StreamDecoder();
int width = 0;
int height = 0;
byte[] output = jbig.DecodeJBIG2(input, out width, out height);
// the resulting 'byte[] output' is a RGB array

// Then the bytes can be converted to an image using your favorite image processing library.
// To convert to a png using ImageSharp:
var image = Image.LoadPixelData<Rgb24>(output, width, height);
image.SaveAsPng("pic.png");

Versions

  • 1.5.0 - .NET 8

  • 1.4.0 - All package dependencies removed and only a byte array is created

  • 1.3.0 - All libraries converted to .NET Standard 2.0

Original History

NuGet

https://www.nuget.org/packages/JBig2Decoder.NETStandard/

github

@nicholsab

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on JBig2Decoder.NETStandard:

Package Downloads
gtextsharp

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.5.0 353 3/1/2024
1.4.0 3,644 1/13/2023
1.3.0 3,890 10/22/2020
1.2.0 442 10/21/2020
1.0.0 427 10/21/2020

Library that converts JBIG2 (.jb2) files to binary image arrays.  Each pixel is white or black and the compression is 2-4 times smaller than JBIG!

The library has no dependencies and is compiled for .NET6, .NETStandard2.0, and .NET Framework 4.8.

It is based off of JBig2Decoder.NETCore