diff --git a/CHANGELOG.md b/CHANGELOG.md index 3610035..a387cac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,9 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - `clear_png_metadata` function in `functions.py` - `extract_metadata` function in `functions.py` ### Changed +- `clear` function in `functions.py` +- `update` function in `functions.py` - Test system modified - `README.md` updated - ## [0.4] - 2025-06-16 ### Added - `Acknowledgments` in `README.md` diff --git a/dmeta/functions.py b/dmeta/functions.py index 2a4c448..26bf821 100644 --- a/dmeta/functions.py +++ b/dmeta/functions.py @@ -88,7 +88,7 @@ def is_metadata_cleared(xml_path, is_core=True): modified = microsoft_file_name if not in_place: modified = microsoft_file_name[:microsoft_file_name.rfind('.')] + "_cleared" + "." + microsoft_format - with zipfile.ZipFile(modified, "w") as file: + with zipfile.ZipFile(modified, "w", compression=zipfile.ZIP_DEFLATED) as file: for file_name in source_file.namelist(): file.write(os.path.join(unzipped_dir, file_name), file_name) file.close() @@ -194,7 +194,7 @@ def is_metadata_up_to_date(xml_path, metadata, is_core=True): modified = microsoft_file_name if not in_place: modified = microsoft_file_name[:microsoft_file_name.rfind('.')] + "_updated" + "." + microsoft_format - with zipfile.ZipFile(modified, "w") as file: + with zipfile.ZipFile(modified, "w", compression=zipfile.ZIP_DEFLATED) as file: for file_name in source_file.namelist(): file.write(os.path.join(unzipped_dir, file_name), file_name) file.close()