French COVID QRcode (in PDF) unreadable due to blurry rendering in PDF.js
Categories
(Firefox :: PDF Viewer, defect)
Tracking
()
People
(Reporter: karimbakkal, Assigned: bdahl)
References
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Steps to reproduce:
Download a QR code in PDF format from covid site app and try to read it. (Tried on Ubuntu 20.04)
Actual results:
The QRcode edges is not sharp enough. The blurred cause reading issue (screen and printer).
May be related to others bugs like 1654612 or 1720819 but not sure about it.
Expected results:
The QRcode edges must be sharp in order to be readable without error even after printing it.
Perfect with Adobe Acrobat and Atril
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•3 years ago
|
||
Hi karimbakkal!
Please, could you share with us the URL where you are downloaded the QR Code?
Also, please if it is possible for you, add some screen recording or screenshots showing us where the problem is. It might help us to reproduce it.
Thanks!
Reporter | ||
Comment 3•3 years ago
|
||
Comment 4•3 years ago
|
||
Thank you for providing me with the screenshot. I've tried a couple of PDFs from different sources but I was unable to see the code blurred on my end. I tested this on windows 10 using latest Nightly 93.0a1. It might be possible to be related to or duplicated to this bug 1654612.
Comment 5•3 years ago
|
||
I was unable to reproduce it. I'll set component to have a starting point from this.
Reporter | ||
Comment 6•3 years ago
|
||
I tried with LibreOffice Draw 1:6.4.7-0ubuntu0.20.04.1 in order to see if i can have more information about how the QR-Code is Drawn and it's seem to have the same issue.
I will try to found an PDF editor which can give us more information.
Comment 7•3 years ago
|
||
There have been some printing-related fixes since Firefox 90, so if you could try the current Nightly (see https://www.mozilla.org/en-US/firefox/channel/desktop/#nightly) and confirm whether the problem still occurs, that would be helpful.
If the issue is still happening, please also attach an example of these PDF files so that we can reproduce exactly what you're seeing. Thanks!
Reporter | ||
Comment 8•3 years ago
|
||
No changes with the Nightly 93.0a1 (2021-08-24) . The QR code is not sharp at screen and the laser printer add defects when it try to print greyed area.
The QR code seems contain private data so you can understand why i can't upload it.
Maybe it can be related with these issue : https://github.com/mozilla/pdf.js/issues?q=is%3Aissue+is%3Aopen+label%3A4-image-conversion+
Comment 9•3 years ago
|
||
OK, thank you for trying Nightly. We'll need to investigate further.
Do you have access to either a Windows or macOS machine? If so, it would be useful to know if the same problem happens there, or if it is Linux-only.
Reporter | ||
Comment 10•3 years ago
|
||
I had just try on a Windows 10 machine with the nightly, it's the same thing.
Comment 11•3 years ago
|
||
Hi! I've got a few clarifying questions -- note that there's likely to be some particular special thing about the PDF involved here (this probably doesn't affect all PDFs with QR codes), so the more detail we can capture to try to investigate or reproduce the issue, the better.
(1) What's the website involved here? (you mentioned "a covid site")
(2) When you say "Download a QR Code in PDF format": are you using the browser's Print | Save to PDF
functionality to do this, or are you talking about a PDF file that the website provides to you to directly download, and you're using Firefox to view that PDF? (I see you mentioned PDF.js; if this is specifically an issue with Firefox's rendering of a PDF that has been generated elsewhere, then you're probably right that this is a bug in PDF.js, I think, and we probably need to recategorize it accordingly.)
Reporter | ||
Comment 12•3 years ago
|
||
Oops wrong link.
-
The website is : https://sidep.gouv.fr/
Maybe you can asking them a sample or more info about how they generate it. -
I download the file directly from the website. It doesn't have rendering issue in Atril, Acrobat. The rendering issue is only present if i use the browser as a viewer. From site or from file on hard disk doesn't change anything.
I think there is an relation with this PDF.js issue : https://github.com/mozilla/pdf.js/issues/9713
The example is larger but trouble seem similar : https://github.com/mozilla/pdf.js/files/1991319/image_via_1.3_001.pdf
PDF.js seem to interpolate even if it's not require and it's may the root cause of the trouble i had with the QR code from this website.
Comment 13•3 years ago
|
||
Thanks. I don't know enough about PDF.js internals to be of much help, but I'll reclassify to the appropriate component, and hopefully someone familiar with the PDF Viewer implementation (pdf.js) can pick it up over there. (I'll add a note on that github issue, too.)
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 14•3 years ago
|
||
Comment 15•3 years ago
|
||
Updated•3 years ago
|
Comment 18•3 years ago
|
||
karimbakkal, could you test with Firefox Nightly? The bug should be fixed.
Reporter | ||
Comment 19•3 years ago
|
||
It's ok for screen and printing with the nightly 94.0a1 (2021-09-15) (64-bit).
You can mark the ticket as "solved".
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 20•3 years ago
|
||
(In reply to karimbakkal from comment #19)
It's ok for screen and printing with the nightly 94.0a1 (2021-09-15) (64-bit).
You can mark the ticket as "solved".
Hi karimbakkal! I see that you've already verified this issue on Nightly 94.0a1, and confirmed as fixed. I've tried to reproduce the bug with the pdf linked in https://github.com/mozilla/pdf.js/issues/9713, since I cannot generate a french QR code mentioned in comment 12. However on the fixed builds (with Win 10), the colors look different when pdf is printed, so it doesn't seem to be related with this issue.
Could you please double check on Beta 94 as well, just to make sure that everything is OK?
Reporter | ||
Comment 21•3 years ago
|
||
For the QR Code : i confirmed the issue is solved with beta 94 (tested on Windows 10 and xUbuntu 20.04.3) in the viewer and in my black and white laser printer.
For the printing issue with file "image_via_1.3_001.pdf", i had test with an old "defective" laser color printer :
- with xUbuntu : seems OK. We can found both interpolated and non interpolated
- with Windows 10 : interpolation doesn't work at all. Both part are non interpolated.
Cant tell about color calibration, that's the reason why i never use this color printer.
Comment 22•3 years ago
|
||
(In reply to karimbakkal from comment #21)
For the printing issue with file "image_via_1.3_001.pdf", i had test with an old "defective" laser color printer :
- with xUbuntu : seems OK. We can found both interpolated and non interpolated
- with Windows 10 : interpolation doesn't work at all. Both part are non interpolated.
Cant tell about color calibration, that's the reason why i never use this color printer.
Could you file a separate bug for this problem?
Reporter | ||
Comment 23•3 years ago
|
||
(In reply to Marco Castelluccio [:marco] from comment #22)
Could you file a separate bug for this problem?
If Ciprian Georgiu, which have discover this bug, didn't file it, i can do it if you wish.
I will be useless without a good color printer.
Comment 24•3 years ago
|
||
:ciprian_georgiu, could you file the bug?
Comment 25•3 years ago
|
||
(In reply to Marco Castelluccio [:marco] from comment #24)
:ciprian_georgiu, could you file the bug?
Yes, filed in https://bugzilla.mozilla.org/show_bug.cgi?id=1737774.
I'm going to close this as verified fixed per comment 21, since the QR code issue doesn't reproduce anymore.
Description
•