JBig2Decoder.NETStandard
1.4.0
See the version list below for details.
dotnet add package JBig2Decoder.NETStandard --version 1.4.0
NuGet\Install-Package JBig2Decoder.NETStandard -Version 1.4.0
<PackageReference Include="JBig2Decoder.NETStandard" Version="1.4.0" />
paket add JBig2Decoder.NETStandard --version 1.4.0
#r "nuget: JBig2Decoder.NETStandard, 1.4.0"
// Install JBig2Decoder.NETStandard as a Cake Addin #addin nuget:?package=JBig2Decoder.NETStandard&version=1.4.0 // Install JBig2Decoder.NETStandard as a Cake Tool #tool nuget:?package=JBig2Decoder.NETStandard&version=1.4.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:
- .NET 6.0
- .NET Standard 2.1
- .NET Standard 2.0
- .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.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
JBig2Decoder.NETCore by Winking https://github.com/winkingsoftware/JBig2Decoder.NETCore
Which is from JBig2Decoder.NET by devteamexpress https://github.com/devteamexpress/JBig2Decoder.NET/tree/master/JBig2Decoder
Which is a .NET Port of the java JPedal JBig2Decoder Implementation.
NuGet
https://www.nuget.org/packages/JBig2Decoder.NETStandard/
github
@nicholsab
Product | Versions 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 was computed. 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 is compatible. |
.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. |
-
.NETFramework 4.8
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
.NETStandard 2.1
- No dependencies.
-
net6.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.
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.1, .NETStandard2.0, and .NET Framework 4.8.
It is based off of JBig2Decoder.NETCore