From 87e89cb28b164b4aef2d734738fef87ffdb89d83 Mon Sep 17 00:00:00 2001 From: Carl Witty Date: Mon, 10 May 2010 10:13:10 -0700 Subject: [PATCH] When creating a .pmlz file, compress the .pml --- src/calibre/customize/builtins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/customize/builtins.py b/src/calibre/customize/builtins.py index 63c26df5a5..93d5283b4e 100644 --- a/src/calibre/customize/builtins.py +++ b/src/calibre/customize/builtins.py @@ -68,7 +68,7 @@ class PML2PMLZ(FileTypePlugin): of = self.temporary_file('_plugin_pml2pmlz.pmlz') pmlz = zipfile.ZipFile(of.name, 'w') - pmlz.write(pmlfile, os.path.basename(pmlfile)) + pmlz.write(pmlfile, os.path.basename(pmlfile), zipfile.ZIP_DEFLATED) pml_img = os.path.splitext(pmlfile)[0] + '_img' i_img = os.path.join(os.path.dirname(pmlfile),'images')