A utility programming trying to achieve the maximum possible gzip compression (regardless of the necessary runtime).
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Ultra GZIP

Travis CI Build Status

This tool tries to achieve the maximum possible gzip compression regardless of the necessary runtime.

It therefore attempts to compress an array of bytes by using several different settings of different gzip implementations available for Java, as well as other compression software installed on the system.

1. How to use Ultra GZIP from the Command Line

Run java -jar ultraGzip.jar ARGUMENTS

The following arguments are supported:

  • in=/path/to/file the path to the file with the source data to be compressed
  • si compress contents written to stdin instead of a file. You must specify either in=... or the si option.
  • out=/path/to/file the path to the file where the compressed data should be written to
  • so write the compressed contents to stdout instead of a file. You must specify either out=... or the so option.
  • help print the help screen
  • logger=global,ALL show progress information (odd, but, ... well)
  • help show help

2. Requirements

If you are on Linux, the following utilities can improve the compression which can be achieved by installing the following additional programs:

  • gzip (should already be installed)
  • AdvanceCOMP (sudo apt-get install advancecomp)
  • 7-zip (sudo apt-get install p7zip-full)
  • zopfli (sudo apt-get install zopfli)

3. Use as Ultra GZIP in your Java Code

You can import the class UltraGzip and then create a job which takes an array of byte as input data and returns an array of byte as compression result. The job implements Callable<byte>.

4. Licensing

This software uses JZlib as one of its internal gzip utilities. Although our software here is GPL licensed, JZlib is under a BSD-style license. The GPL licensing of our software therefore only applies to our own code, while the code of JZLib follows said BSD-style license. The binary distribution of our software may include binary versions of JZlib.