code sources

This commit is contained in:
Marco Giuntoni
2024-03-01 16:05:06 +01:00
parent b9ac7f8d72
commit b73c859b94
7 changed files with 1444 additions and 3 deletions
+24 -3
View File
@@ -1,4 +1,25 @@
# comic_img-compress
#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](https://github.com/imazen/libwebp-net), in order to use download the libwebp.dll from [here](https://s3.amazonaws.com/resizer-dynamic-downloads/webp/0.5.2/x86_64/libwebp.dll) 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
-?|-h|--help Show help information
```
# Building
Run `dotnet publish -r win-x64 -c Release`
.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