* Adds options to use metadata title as output name
* update .ui files
* write rest
* small fixes
* small fix
* fix small
---------
Co-authored-by: Alex Xu <alexkurosakimh3@gmail.com>
* Added basic CBZ combine func
Need to add support for epub and maybe mobi.
* Removed irrelevant code for CBZ file fusion
* Fixed false description
* Removed irrelevant code
* Removed redundant code
Replaced page tracker and os.rename with os.renames. Removed unneeded reference to gui. Changed mkdir to mkdtemp.
* Made folder and cbz work together
You can select multiple folders of images, multiple cbz files, and folders with subfolders. Fusion will combine them all together at the same time. Mainly added this to idiot proof it.
* Updated gui
Removed redundant tooltip
* simplify code
* fix merging chapter folders with .
* uncheck fusion message
---------
Co-authored-by: Alex Xu <alexkurosakimh3@gmail.com>
* preserve margin
* set ratio to 0.5
* add preserve margin GUI
* increase step size to 5
* remove clear
* fix save
* save preserveMarginBox
* math
* max 99
* initial fix
* initial
* working, but mobi is a bit too large
* changed target size to 190mb to account for mobi conversion size increase
* changed target size back to 195
* removed debugging print statements
* add trailing comma
---------
Co-authored-by: Alex Xu <alexkurosakimh3@gmail.com>
* Eliminate unnecessary use of MD5 checksum
md5checksum() computes the actual checksum of a specified file, which is appropriately expensive, but the code seemed to be using the checksum result as a key into the imgMetadata dictionary to avoid handling image files being renamed during processing steps. This seems like a very expensive way to handle the rename so instead, I now update the imgMetadata keys with the new filename in the one place that the rename happens, and avoid MD5 checksums entirely.
* merge conflicts
* Add missing handling for image path renames due to nested chapter folder name
* merge conflicts
* merge conflicts
* add perf_counters
* imgFileProcessing perf_counter
* use startswith and removeprefix
---------
Co-authored-by: utopiafallen <utopiafallen@gmail.com>
Commit f952634971 moved image corruption detection out from the ComicPage constructor and into a standalone detectCorruption() function. This led to a performance regression because now corruption detection happens in a single thread when it used to be distributed across worker threads, and because a source image is now loaded twice in memory: once during corruption detection and once when actually going to process the image.
Image file corruption detection is now back inside the ComicPage constructor and the extra load() has been removed because the convert() call will automatically invoke load() and most likely throw the same exceptions.