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 0000000..39fb97b Binary files /dev/null and b/ComicCompress.csproj.zip differ 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) {