Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New archivers support: Brotli, LZ4 and ZStd #19

Closed
stokito opened this issue Sep 17, 2019 · 3 comments
Closed

New archivers support: Brotli, LZ4 and ZStd #19

stokito opened this issue Sep 17, 2019 · 3 comments

Comments

@stokito
Copy link

stokito commented Sep 17, 2019

Recently was published few new compression algorithms and formats that are going to be quite popular:
Brotli from Google: is supported by all browsers, was standardized and have it's RFC but it doesn't have magic signature.
LZ4 which is ultra fast and lightweight.
ZStandard from Facebook which is already widely supported by a lot of systems including Linux kernel. It's mime type is application/zstd and it's magic is \x28\xB5\x2F\xFD
Could you add a support for them? If yes please also add their tar version (tzst, tlz4, tbr).
The more programs supports them then the easier it will be to migrate to this compressors.

@cdgriffith
Copy link
Owner

Thanks for bringing up these new formats, if you happen to have any of them please post example files.

@stokito
Copy link
Author

stokito commented Sep 18, 2019

well, on linux you can easily install the programs and create the test files yourself:

$ sudo apt install brotli lz4 zstd
$ touch test.txt
$ brotli -k test.txt
$ lz4 -k test.txt
$ zstd -k test.txt

I uploaded results:

Magics:

Mime types:

  • application/x-brotli and application/x-brotli-compressed-tar for tar.br files
  • application/x-lz4 and application/x-lz4-compressed-tar for tar.lz4 or tlz4 files
  • application/zstd (without the -x) and application/x-zstd-compressed-tar for tar.zst or tzst files

@cdgriffith
Copy link
Owner

Added brotil magic number in 1.7 for format 3 from google/brotli#298
lz4 and zst added in 1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants