-q option is redundant and incompatible with other compression programs #283

Closed
opened 2026-01-29 20:41:21 +00:00 by claunia · 1 comment
Owner

Originally created by @planet36 on GitHub (Jun 5, 2019).

$ brotli --version
brotli 1.0.7

As described in the help message, the -q option seems to do almost the same thing as the -# option. I know that compression levels 10 and 11 are not possible with the -# option.

-# compression level (0-9)
-q NUM, --quality=NUM compression level (0-11)

The following compression programs use the -q option to make the program "quiet".

  • bzip2
  • clzip
  • gzip
  • lbzip2
  • lz4
  • lzip
  • lzop
  • minilzip
  • pbzip2
  • pdlzip
  • pigz
  • plzip
  • xz
  • zstd

This prevents brotli from being a drop-in replacement for other compression programs.

Originally created by @planet36 on GitHub (Jun 5, 2019). $ brotli --version brotli 1.0.7 As described in the help message, the -q option seems to do almost the same thing as the -# option. I know that compression levels 10 and 11 are not possible with the -# option. > -# compression level (0-9) > -q NUM, --quality=NUM compression level (0-11) The following compression programs use the -q option to make the program "quiet". - bzip2 - clzip - gzip - lbzip2 - lz4 - lzip - lzop - minilzip - pbzip2 - pdlzip - pigz - plzip - xz - zstd This prevents brotli from being a drop-in replacement for other compression programs.
Author
Owner

@eustas commented on GitHub (Jul 17, 2019):

Unfortunately, it is too late. Removing -q will harm existing users.
On the other side, it is not terribly difficult to write a wrapper script that would eat -q and pass other parameters as is to brotli executable.

@eustas commented on GitHub (Jul 17, 2019): Unfortunately, it is too late. Removing `-q` will harm existing users. On the other side, it is not terribly difficult to write a wrapper script that would eat `-q` and pass other parameters as is to brotli executable.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#283