Skip to content

How to disable compression of a newly created ZIP? #428

Answered by gildas-lormeau
drauch asked this question in Q&A
Discussion options

You must be logged in to vote

You have to set the option level to 0 when creating a ZipWriter instance or when calling the add method.

See here for an example of code:

const entry = await zipWriter.add(FILENAME, new zip.BlobReader(BLOB), { level: 0 });

See here for the documentation: https://gildas-lormeau.github.io/zip.js/api/interfaces/ZipWriterConstructorOptions.html#level.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by drauch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #427 on June 13, 2023 12:12.