From ad940c6167764e1cd705f1a52de8d362de5ae80d Mon Sep 17 00:00:00 2001 From: Toastie Date: Fri, 27 Dec 2024 18:09:50 +1300 Subject: [PATCH] Set the compression method to prioritize file size --- Transcriber.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Transcriber.cs b/Transcriber.cs index ca891e7..c836adb 100644 --- a/Transcriber.cs +++ b/Transcriber.cs @@ -88,10 +88,10 @@ internal static class Transcriber { using (ZipArchive zip = ZipFile.Open(zipPath, ZipArchiveMode.Create)) { - zip.CreateEntryFromFile(htmlPath, htmlFilename); + zip.CreateEntryFromFile(htmlPath, htmlFilename, CompressionLevel.SmallestSize); foreach (string assetFile in assetFiles) { - zip.CreateEntryFromFile(assetFile, assetDirName + "/" + Path.GetFileName(assetFile)); + zip.CreateEntryFromFile(assetFile, assetDirName + "/" + Path.GetFileName(assetFile), CompressionLevel.SmallestSize); } }