From c58f13d77a7b58003866f5da0630aa8bc63fa05c Mon Sep 17 00:00:00 2001 From: mgiuntoni Date: Fri, 12 Dec 2025 15:53:19 +0100 Subject: [PATCH] Updated projects to newer libraries Using flags instead of dictionary --- ComicCompress.csproj | 20 ++++++++++---------- ComicCompress.csproj.zip | Bin 0 -> 2524 bytes Program.cs | 23 +++++++++++++++++------ 3 files changed, 27 insertions(+), 16 deletions(-) create mode 100644 ComicCompress.csproj.zip diff --git a/ComicCompress.csproj b/ComicCompress.csproj index 52f0c88..d3608d8 100644 --- a/ComicCompress.csproj +++ b/ComicCompress.csproj @@ -7,6 +7,7 @@ ComicCompress True Debug;Release;ReleaseWDbg + 1.1.0.0 @@ -26,21 +27,20 @@ - - + - - - + + - + + - - - - + + + + diff --git a/ComicCompress.csproj.zip b/ComicCompress.csproj.zip new file mode 100644 index 0000000000000000000000000000000000000000..39fb97b3fae3f3a4fda80e2ff3a3896162a4815e GIT binary patch literal 2524 zcmbVO&2G~`5O(M#H7nn_)cI{H?;3!^sJo9<}XWZS(S4x(?u77&|=FyMeU&#&2(*IjX+vI)b z<1G;&CGlk<`1_xqzc?{Rk}L!`~Q+DCqwP#+o@ z1GsQ1+1G~LQ~@oS6`H9wd1LTDiXuKdj3w>D2W^OeN|>E5n_lQta-0Un3lI{e8&y&z%i0+;!j#9U(da9?%uV_m6M=3TYV3L0D?A1J`jFUv3(vFVs$E}hQ*bhr6(7d zpc#ep=53>`E)^0k)hK^yEL$COOsQz9duM z8bB*Gg5_Em3H|sHV)7C^*8r(vlFy;eB!|}xdDLJY@eY>2!7&wy0kKL}Nwr4q6}DuL zc~60L^EfqhY;kwAXvqAYZmLVqH>*f1i>PKSob4Iu-y7I4)$0Khl)j5izn*d!(LT9qg)Lg8RBT_9LBmq*W)8YTzAUi zUza-geme6Elx0$zCz+>yCaI$*&f&2EcYiLMUQrLo_I5u3GiIw8v$eu8GcZV#595f_ zAXE1_xO}sj%x$wrPbRq@<~Xb{3siZNC*uyEPSPe5xFK*cuG=nd4eT7LV^gRjd_F1M24hWSlw1QSM74z&RnXFb6m3#RZ!pA^75C)NXQXuJ(##j z5YjE^)a&`rE|w-ESno$TJKf!dOAoE{Hmp07&C9aN>4_zDX5T8MZx^iF*7ut$zeW$g YEu`!xhr4_AntoWoUl-4JxW8G}A0}+;AOHXW literal 0 HcmV?d00001 diff --git a/Program.cs b/Program.cs index 5b25661..3726b08 100644 --- a/Program.cs +++ b/Program.cs @@ -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) {