94f3fab41c60358a2c8e05b2c8c1f5373ff613c3
- Updated 10 NuGet packages: SharpCompress 0.49.1, Magick.NET-Q8-x64 14.14, System.Drawing.Common 10.0, itext 9.6, Imazen.WebP 11.0, McMaster 5.1, iTextSharp 5.5.13.5, Imageflow 0.15.1, Magick.NET.SystemDrawing 8.0.23 - Fixed missing OnExecuteAsync -- CLI was throwing InvalidOperationException on launch - Added -w|--new-webp flag (Imageflow encoder path; benchmarked consistently slower) - Added -P|--par-archive: parallel image compression within each archive Batched 3-phase design: sequential read -> Parallel.For (ProcessorCount/2 threads) -> sequential write; ordering guaranteed by indexed slots; ~4-5x measured speedup - Added par_archive to ProcessorFlags - Added CLAUDE.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
#comic-img-compress
# About A simple command line interface to change .cbr and .cbz comic files with png or jpeg images to webp, improving compression markedly The tool is able to convert also single jpg or png images to webp
Setup
This project uses libwebp-net, in order to use download the libwebp.dll from here and add to the project root
Running
Run dotnet run -- [args]
dotnet run -- --help for help
-i|--input <FOLDER/FIlE> The file or folder to convert
-o|--output <FOLDER> Base path of the output (will be in output/subfolders if the recursive option is enabled), default: converted_comics
-r|--recursive Recursively traverse the input folder (include all subfolders)
-s|--skip Skip processing file if it already exists in the output folder
-q|--quality Quality to use for the webp files (default: 75)
-p|--parallel Run in parallel, utilizing all computing resources
-c|--cpu Run in parallel, utilizing all computing resources
-d|--pdf Process PDF
-n|--prn Process Zebra PRN files, generate png and webp from jpeg in base64 URI format
-a|--copyall Copy all unprocessed files
-?|-h|--help Show help information
Building
Run dotnet publish -r win-x64 -c Release
Description
.NET console tool to compress CBZ, CBR archives with jpeg or png files to CBZ with WEBP converted images
The tool is able to convert also single jpg or png images to webp
Languages
C#
100%