Updated projects to newer libraries

Using flags instead of dictionary
This commit is contained in:
2025-12-12 15:53:19 +01:00
parent 4cc0732a8a
commit c58f13d77a
3 changed files with 27 additions and 16 deletions
+17 -6
View File
@@ -11,9 +11,9 @@ using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using GroupDocs.Parser;
using GroupDocs.Parser.Data;
using iText.Kernel.Pdf;
//using GroupDocs.Parser;
//using GroupDocs.Parser.Data;
//using iText.Kernel.Pdf;
using Imazen.WebP;
@@ -141,12 +141,23 @@ namespace ComicCompressor
// });
//}
FileProcessor.ProcessorFlags flags = new FileProcessor.ProcessorFlags(null, null,
recursive: false,
skip: false,
parallel: false,
pdf_only: false,
image_only: false,
zebra: false,
copy_all: false,
new_webp: false
);
private void OnExecute()
{
File_statistics.Clear();
flags.File_statistics = File_statistics;
myColors = new Color[names.Count()];
for(int i = 0; i< myColors.Length; i++)
@@ -460,7 +471,7 @@ namespace ComicCompressor
try
{
compressor.Compress(filename, outputPath, file_statistics);
compressor.Compress(filename, outputPath, flags:flags);
}
catch (Exception e)
{