A Managed Implementation of Zlib for .NET
Перейти к файлу
James Jackson-South 0bbfaef58d Add additional per-chunk read/write test 2022-12-05 08:20:21 +10:00
.github Bump github/codeql-action from 1 to 2 2022-06-05 07:26:35 +00:00
shared-infrastructure@0ea21d9e2a Add CI build 2021-04-24 00:57:25 +01:00
src Add additional per-chunk read/write test 2022-12-05 08:20:21 +10:00
tests Add additional per-chunk read/write test 2022-12-05 08:20:21 +10:00
.editorconfig Add CI build 2021-04-24 00:57:25 +01:00
.gitattributes Add CI build 2021-04-24 00:57:25 +01:00
.gitignore Faster Adler32, better sparse compression 2020-05-19 11:44:31 +01:00
.gitmodules Cleanup solution infrastructure 2020-04-28 10:58:23 +01:00
Directory.Build.props Add CI build 2021-04-24 00:57:25 +01:00
Directory.Build.targets Update to latest props/targets 2021-02-20 19:11:00 +00:00
LICENSE Update license 2021-02-20 19:14:45 +00:00
NuGet.config Added nuget config. 2020-04-08 02:57:25 -04:00
THIRD-PARTY-NOTICES.txt Update license and readme. 2020-05-20 13:34:33 +01:00
ZlibStream.sln Add CI build 2021-04-24 00:57:25 +01:00
benchmarks.md Fix Bi_Flush/BI_Windup 2021-04-28 00:44:23 +01:00
ci-build.ps1 Add CI build 2021-04-24 00:57:25 +01:00
ci-pack.ps1 Add CI build 2021-04-24 00:57:25 +01:00
ci-test.ps1 Add CI build 2021-04-24 00:57:25 +01:00
readme.md Changed master to main in the links. 2022-02-10 19:21:40 +01:00
stylecop.json Reverted incorrect patch. 2022-02-10 19:16:04 +01:00

readme.md

SixLabors.ImageSharp
SixLabors.ZlibStream

License: Apache 2.0

A WIP fork of zlib.managed with target framework, API changes (hence fork) and performance improvements.

The goal is to introduce as near-native performance as possible while implementing missing features from Zlib into the codebase.

Targets netstandard1.3+

Why?

DeflateStream in the .NET framework is a wrapper around the Intel fork of Zlib. This fork sacrifices compression of sparse data for performance gains which results in huge differences between the output size of certain images on Windows compared to other platforms. By producing a high performance managed implementation we can guarantee excellent cross platform image compression.

Building the Project

Alternatively, you can work from command line and/or with a lightweight editor on both Linux/Unix and Windows:

To clone ZlibStream locally, click the "Clone in [YOUR_OS]" button above or run the following git commands:

git clone https://github.com/SixLabors/ZlibStream

This repository contains git submodules. To add the submodules to the project, navigate to the repository root and type:

git submodule update --init --recursive

Benchmarks

Benchmarks against the Canterbury corpus, a collection of files intended for use as a benchmark for testing lossless data compression algorithms can be found here.