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
Auto crop not working on some pages #4106
Comments
Yes, I have this problem too. |
I believe the problem was introduced in #970 : koreader/frontend/apps/reader/modules/readerzooming.lua Lines 529 to 535 in b4424b4
It seems that the crop values are included in the ubbox_dimen var, and self.view:onBBoxUpdate(nil) with nil is being called. |
Isn't that describing the situation before that else was introduced to work around whatever the problem is there? |
I didn't fix it, just test like reverting back :) |
After some tests with the said document from koreader#970 it seems like that the visual defect occurs for only semi-auto and manual crop modes. I've removed auto-crop from the rule so koreader#4106 can be fixed when using auto-crop.
Issue
Similar to #3376, using "fit to content width" sometimes does not work as it should. I checked the image(s) in Photoshop and it doesn't appear to have off-white pixels that would prevent accurate detection of the actual content.
I was wondering if there could be an option to set some sort of tolerance for cropping out white areas around the border with auto crop, rather than setting it to semi-auto and adjusting it every other page.
Using reflow removes a bit too much on lighter-inked pages, so I would rather not use that.
Steps to reproduce
Enable auto-cropping, and set zoom mode to "fit to content width."
Open the following files on Koreader:
This page gets cropped and fitted with no problems.
This page does not:
I'm not sure what's causing it to work on the first page, but not the other. The second image does not have an off-white border running around it, just as it is on the first image.
The text was updated successfully, but these errors were encountered: