brimworks / lua-zip

Lua binding to libzip.
80 stars 25 forks source link

Allow zip compress level especially NO_COMPRESS #4

Closed wesleywu closed 10 years ago

wesleywu commented 10 years ago

Sometimes I need to add mp3/jpg files into a zip archive. Maybe adding files as NO_COMPRESS will save some CPU time.

brimworks commented 10 years ago

Although I think this would be a great feature, this Lua library simply wraps NIH's libzip, and I don't see any option that allows you to modify the compression level: http://www.nih.at/libzip/zip_file_add.html

If you do find a way to modify the compression level, let me know and I would gladly modify the lua binding to allow for such an option. If you really want this feature, perhaps you can request if from NIH?

MisterDA commented 8 years ago

Hi ! It seems that this feature has been implemented now. See zip_set_file_compression. Can you add it too to your binding ? Thanks a lot !