#gzip #zlib #zopfli #deflate #command-line-tool

app rzopfli

A lossless data compression tool using Zopfli

4 releases

0.1.3 Aug 4, 2024
0.1.2 Jul 29, 2024
0.1.1 Jul 22, 2024
0.1.0 Jul 22, 2024

#268 in Compression

Download history 235/week @ 2024-07-18 200/week @ 2024-07-25 126/week @ 2024-08-01 12/week @ 2024-08-08 1/week @ 2024-08-15 9/week @ 2024-09-12 10/week @ 2024-09-26 7/week @ 2024-10-03

195 downloads per month

Apache-2.0 OR MIT

26KB
438 lines

rzopfli

CI Version MSRV License

rzopfli is a lossless data compression tool which uses the Zopfli compression algorithm.

Installation

From source

cargo install rzopfli

From binaries

The release page contains pre-built binaries for Linux, macOS and Windows.

How to build

Please see BUILD.adoc.

Usage

The command line syntax of rzopfli is similar to gzip and zstd, and some options derived from the Zopfli reference implementation. rzopfli preserves input files by default, just like zstd. It's possible to remove them automatically by using --rm.

Basic usage

Compress a file into the gzip format:

rzopfli foo.txt

Write the processed data to standard output:

rzopfli -c foo.txt

Remove an input file after successful compression:

rzopfli --rm foo.txt

Performs 50 compression iterations:

rzopfli -i 50 foo.txt

Compress a file into the zlib format:

rzopfli --format zlib foo.txt

Generate shell completion

--generate-completion option generates shell completions to standard output.

The following shells are supported:

  • bash
  • elvish
  • fish
  • nushell
  • powershell
  • zsh

Example:

rzopfli --generate-completion bash > rzopfli.bash

Command-line options

Please see the following:

Changelog

Please see CHANGELOG.adoc.

Contributing

Please see CONTRIBUTING.adoc.

License

Copyright © 2024 Shun Sakai (see AUTHORS.adoc)

  1. This program is distributed under the terms of either the Apache License 2.0 or the MIT License.
  2. Some files are distributed under the terms of the Creative Commons Attribution 4.0 International Public License.

This project is compliant with version 3.2 of the REUSE Specification. See copyright notices of individual files for more details on copyright and licensing information.

Dependencies

~4–14MB
~178K SLoC