-
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
skip single pixel images in PDF #546
Conversation
axu2
commented
Jun 18, 2023
•
edited
Loading
edited
- Fixes [Bug] Every Other Page are Gray Pages(PDF Issue) #540
Ok so good news is that it fixed the majority of the pages. However, there are still some pages in my manga that are showing these gray pixels again. Here's the pages that are having this issue again. Nonetheless, thank you for your work so far! |
@derzz Can you add this line to the code:
and adjust the thresholds as appropriate based on what you see? In my case, image lengths were:
Skipping images based on size is REALLY hacky though. Feel free to look into better pdf jpg extraction methods. |
Ok, I got it now, I changed the boundaries to 287 since some image lengths were being to that number. Nonetheless, skipping images by these sizes should be fine since these are small values compared to the manga's pages whose full length should be in the thousands. Thank you so much for your help! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testing this and then merging