Skip to content

saucecontrol/ZlibStream

 
 

Repository files navigation

SixLabors.ImageSharp
SixLabors.ZlibStream

License: MIT

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.

About

A Managed Implementation of Zlib for .NET

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 87.9%
  • HTML 6.8%
  • C 3.1%
  • Roff 1.2%
  • Common Lisp 1.0%