* set tabulation order for KCC fields
- loop through fields in more organized order including fields which visibility depends on some checkboxes state
* don't change rc
---------
Co-authored-by: Alex Xu <alexkurosakimh3@gmail.com>
* set tabulation order for metadata editor fields
- loop through fields in from top to down order
* don't change rc
---------
Co-authored-by: Alex Xu <alexkurosakimh3@gmail.com>
* Add rainbow_artifacts_eraser helper
This helper file contains the methods necessary to perform a fourier transform on the picture, to remove frequencies responsible for rainbow artifacts on Kaleido screens, and performe the reverse fourier transform
* Replace blurring method with frequency removal method to erase rainbow effect on Kaleido 3 screens
* High performance improvements by using rfft2 instead of fft2
* Fine-tuned the settings and added the perpendicular direction for a better final rendering
The finer settings allow for more information to be retained in the final image, while still effectively removing the rainbow effect.
Adding the perpendicular direction results in a better rendering of the final image (avoiding visual artifacts related to suppression at the main angle).
* Revert the addition of perpendicular angles and lower attenuation_factor
It was a mistake to add the perpendicular angles in the previous commit: I had the rainbow effect removal process called 2 times when I did this, for testing purposes (One before downscale and one after downscale).
The proper way to call the process is only after the downscale. And in this case it is not necessary to remove frequencies along the perpendicular angles.
In the mean time, attenuation_factor=0.15 has proven to work well along a collection of testing images.
It should be my latest commit for this feature
* Also attenuate high frequencies at 45°
CFA is sometimes orientated at 135°, sometimes at 45° so until we find if there is a law depending on the screen size, e-reader model or something, the best we can do is attenuate high frequencies on those two directions
* fix imports
* Update comic2ebook.py
Calculate is_color with (opt.forcecolor and img.color)
pass is_color to img.optimizeForDisplay
* Update image.py
Remove color check condition, because now we process colored images too.
Pass is_color to erase_rainbow_artifacts
* Update rainbow_artifacts_eraser.py
Add support for colored images: Convert to YUV, extract luminance channel, do FFT -> Filter -> IFFT on luminance channel, insert back to YUV, convert back to RGB
To maximize compatibility until we know for sure the orientation of CFA for each device, filtering is now done on 135° + 45° axis
After more testing, attenuation_factor is decreased to 0.10
* Update comic2ebook.py
Rename rainbow eraser param
* Update image.py
rename rainbow eraser param
* Update KCC.ui
Rename rainbow eraser checkbox and tooltip
* Update KCC_ui.py
Rename erase rainbow checkbox and tooltip
* Update KCC_gui.py
Rename erase rainbow checkbox and option
* Update README.md
rename erase rainbow param
* Update KCC_gui.py
correct param name for eraserainbow
---------
Co-authored-by: Alex Xu <alexkurosakimh3@gmail.com>
* Replaced Add Folders with output directory button.
I took the code from #969 and replaced the selectDir() function with it. Then replaced the button and linked it to selectDir()
* Fixed merge error in gui
* Fixed bug
Missing () at the end of checkState on line 852
* small fixes
* fix checkbox not saving
* rename selectDir to selectOutputDirectory
---------
Co-authored-by: Alex Xu <alexkurosakimh3@gmail.com>
* 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
* Add split size GUI widget
* Set split size and save GUI widget state in settings
* Set max split size in GUI to 600 MB
* Move chunk size control in middle column and widget on panel below.
Added warning label and tooltip
* Fix chunk size incorrectly enabled when webtoon active and format change
* add 'on older ereaders'
---------
Co-authored-by: Alex Xu <alexkurosakimh3@gmail.com>
* Inter-panel cropping method.
* 1. Save interpanelcrop option.
2. Update readme with the the new interpanelcrop argument.
3. Add a tooltip to the inter-panel crop box.
1. Replaced both crop margins and crop margins & page num with newer algorithm.
2. Crop max power level increased to 3.0
3. Adds NumPy as a new dependency.
* Adds --author argument to CLI
* Add --prefercoverfile and --nocoveraspage arguments to CLI
* cover checks only run once
* Revert "cover checks only run once"
This reverts commit ad7b3cc106.
* split off author portion
* split off author
* remove prefercover
* whitespace fixes
* rename to duplicatecover
* whitespace fixes
* rename to dedupecover
* add dedupe to UI
---------
Co-authored-by: Alex Xu <alexkurosakimh3@gmail.com>