-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Inter-panel White Space Cropping #804
Comments
@neyney10 in case you are interested |
Sounds interesting. Also - how does it work while also cropping the margins of a page? Is there any unique behavior? |
You can request a 30-day trial license from the gui. Launch The eReader configuration and image-editing optionas are saved in a As for how the inter-panel cropping works, I can't say exactly because it's a closed-source program. However, since it's using ImageMagick's For the page margins, that is a separate option from the inter-panel chopping. Again, looking through the ImageMagick docs for Looking in my
If you'd like to try the program yourself, you'll need
Also, this python library for the ImageMagick API looks quite established. Haven't tried it myself though: wand |
Yeah, looks perfect to me. Out of curiosity, what did you use to make that .gif? I'm assuming Pillow, but maybe Share X? |
I saved the images from the algorithm to the disk (Pillow). And then merged them into a gif using the site: https://ezgif.com/. Do you know of any edge cases for this inter-panel cropping that I should look out for and check? |
Only thing that comes to mind is when the scans are poor and there's speckling. Don't see that as much these days, but I suppose that's what fuzzy detection is for. |
Actually, one thing I remembered is that with some freeform artwork, it will get mashed together when the spacing is chopped. Think of like a dude throwing a basketball, there's space that would be lost there. Not much you can do about that I suppose, just something to be aware of when using the option. |
Hello,
I'm coming to KCC as a long-time user of MangAi, which unfortunately has been EOL since the developer developed a sickness.
Therefore, I've found KCC and so far it's been working great! However, I don't see an option to perform inter-panel cropping to remove white-space.
As an example, I've attached a few comparison images; The first is the original image, secondly the KCC output, and finally the MangAi output with an example of horizontal white-space cropping.
Device: Kobo Forma (1440x1920)
While the images appear to be the same size, this is only because GitHub stretches them to fit your display. Only the third image is actually representative of what you'd see on the screen of an eReader (Kobo Forma @ 1440x1920)
Original (2138x3038)
KCC (1285x1920) | CroppingPower=3.0
MangAi (1440x1920) | Horizontal cropping, no option to remove page numbers
Notice that the panels in the third image have been horizontally cropped of white-space, a small threshold was left so that the images don't touch, and finally it was all blown-up as needed to fill the screen (while maintaining the correct aspect-ratio).
MangAi will also perform vertical white-space cropping, not just the margin white-space. Meaning it essentially passes over the entire image twice; First horizontally and then again vertically to remove all white-space. I couldn't find an image with vertical white-space between panels to use as an example, but it's essentially the same thing as horizontal cropping but done vertically.
While not a dramatic difference here, with certain pages it can definitely increase the used real-estate when all horizontal and vertical white-space has been removed... Also, MangAi uses ImageMagick, which seems to do a sharper job of resizing, but that's just me...
Thoughts?
The text was updated successfully, but these errors were encountered: