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

README: please add about compression: is it enabled by default? For all file formats? #948

Open
vitaly-zdanevich opened this issue Jan 29, 2025 · 3 comments

Comments

@vitaly-zdanevich
Copy link

Can we regulate compression ratio? What is the compression format?

@benoit74
Copy link

There is nothing special about this in the zimit scraper, we just use regular mechanisms of the libzim. Transferring issue there.

@benoit74 benoit74 transferred this issue from openzim/zimit Jan 29, 2025
@rgaudin
Copy link
Member

rgaudin commented Jan 29, 2025

Here's the details if you want to submit a PR for that

  • Compression method is chosen a ZIM creation time.
  • A ZIM can only use one compression method.
  • libzim currently only supports zstd (zstandard) and none (no compression at all for any entries)
  • Compression is per entry ; not the whole thing
  • ZIM creator can choose to compress or not compress any entry when adding to ZIM
  • When adding an entry, if compression information is not supplied, a decision is made automatically:
    • if mimetype of entry to be added starts with text/, then it is compressed
    • if not, it is not compressed.

@vitaly-zdanevich
Copy link
Author

Thanks, created PR openzim/zimit#459

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

3 participants