Closed Hebusing closed 4 years ago
Can you compare the images provided via the api directly, and not displayed via the webreader? This would rule out any web display as the cause.
You can access the raw pages directly via /api/v1/books/{bookId}/pages/{pageNumber}
I checked the commits since 0.45.2
and now, and found out that the Apache PDFBox library was updated from 2.0.19
to 2.0.20
. This may be the reason for it.
You could try to get the latest master
of Komga, change the version back to 2.0.19
, and see if that fixes the problem. That would assume that you have the necessary skills.
If not, you could provide me with one of the impacted file, and i could try on my end.
If that were the case, i would check with the PDFBox maintainer to find out if that's a regression, or if i'm using the library in an incorrect way, or with incorrect paramters.
I've digged through PDFBox's Jira and found https://issues.apache.org/jira/browse/PDFBOX-4886 which seems to be the same problem you have, at least the description matches.
Let me know if you can confirm whether rolling back 2.0.19
fixes the issue for you, in which case i would push that fix.
You're always really quick in answering those issues... Hats off!
I don't know how to change back to Apache PDFBox from 2.0.19
to 2.0.20
but I'm ok to try if you could provide me with the steps.
I did try with the API https://my_komga_IP_server/api/v1/books/{bookId}/pages/{pageNumber} and the output is still blurry.
I've tested the file "FlowerBompA6.pdf" available on the apache web site you've provided above and it is blurry.
I've uploaded 1 PDF file without issues: https://we.tl/t-eW1bgPt5D9 And another one with issues: https://we.tl/t-XOWODVY8E2 I think the links will be valid for 1 week only.
Hope this will help you!
By the way, I love your work and would be happy to help you in any way possible. Let me know. ;-)
Thanks for the files. I tested with the blurry one and can confirm that the latest PDFBox is the cause.
:tada: This issue has been resolved in version 0.52.2 :tada:
The release is available on:
v0.52.2
Your semantic-release bot :package::rocket:
I also confirm that the v0.52.2-master fix this issue! Thanks a million for your amazing support...
Komga environment
Describe the bug
A lot (I would say most) of my PDF files that I'm opening are blurry (like if they were in low definition or badly compressed) with this new version (and some PDF are not). The CBR or CBZ files are not blurry.
Steps to reproduce
Open a PDF file with Komga. The PDF on the hard drive is of course in very good quality (see screenshots below).
Expected behavior
Actual behavior
Additional context
It was working fine with the v0.45.2-master. I can't see a pattern between the PDF that work and those that don't. I tried on Safari / iPad, Chrome / Windows 10 and Safari / MacOS and they all display the same. It is the same with the scale "Fit to Original" or "Fit to width", the picture is still blury. I'm happy to provide you with the pdf files (around a 100MB each), so let me know how to do this.
Screenshots
One of those PDF that is blurry in Komga (Chrome, Windows 10), the scale is "Fit to Original" here:
The same in Acrobat reader:
A PDF which is NOT blurry in Komga (Chrome, Windows 10):
The same in Acrobat reader:
Log file
Thank you for your support and let me know how I can help!