mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.35k stars 9.97k forks source link

Blurry/fuzzy embedded images #4706

Closed rustyx closed 3 years ago

rustyx commented 10 years ago

A fix for this was attempted many times, but still the issue exists. FF 29.0.

Test PDF: http://rustyx.org/temp/fuzzy-test.pdf

Results

timvandermeij commented 10 years ago

The problem appears to be that the image content stream contains /W 46 and /H 46. This makes PDF.js think that the image mask (/IM true in the stream) is 46x46 pixels, causing an upscale.

jonwilks commented 10 years ago

This issue also follows through in printing. I can create a separate issue for this if we think it is necessary. In my personal test PDF's I notice this applies to fonts & vectors as well.

The following images were printed and scanned to demonstrate this issue's relevance to printing.

screen shot 2014-05-16 at 9 14 14 am

michaelrlevy commented 10 years ago

I hope this is worked on soon. I am planning to use the browser viewer as a way of delivering archival PDF files via web browser and I have come across an example of scanned archival documents that display very blurry. In the example I have, the first two pages are blocky and subsequent pages are fine. If someone working on this would like to see the original PDF file, I'd be happy to send it to you. Two screengrabs below; one from using Chrome's PDF viewer and one using the PDF.js HTML/JavaScript application

Also note please: In our case we are creating these PDF files ourselves with Adobe Acrobat 10.1.10 and Adobe Acrobat 10.0 Paper Capture Plug-in. In the current case we've made quite a number and have only seen the problem in one PDF. If there is a hint about how we could avoid triggering this issue, it would be very helpful.

capture capture2

yurydelendik commented 10 years ago

@michaelrlevy that looks like unrelated problem (which means yours will not be resolved by fixing this one). please file a new issue report and provide link to the pdf (see also https://github.com/mozilla/pdf.js/blob/master/CONTRIBUTING.md)

michaelrlevy commented 10 years ago

@yurydelendik many thanks for the tip. Unfortunately I need to wait to get OK to post the whole document publicly (although I can email it to anyone). I will open up a new ticket and add the PDF to it later.

rustyx commented 9 years ago

Still an issue. Please fix this! Our barcodes are UNREADABLE when printed from Firefox due to blur and missing last line!

pdfjs-blurry-image

jonwilks commented 9 years ago

Just poking this issue - very interested in this.

jlukic commented 8 years ago

:+1:

ssaras commented 7 years ago

Any update on this? I'm having similar issues with blurry images.

In Adobe Acrobat Reader 2017 Release | Version 2017.012.20098

adobe

In Chrome 60.0.3112.113 (Official Build) (64-bit), Firefox 54.0.1 (32-bit) and Edge 40.15063.0.0 using Pdf.js version 1.4.20

browser

Firefox 54.0.1 (32-bit), Pdf.js version 1.7.348

firefox

Vorador666 commented 6 years ago

Hello world,

I have the same issue with Firefox 56.0.2 (32 bits) & PDF.js v1.8.618 VS Adobe Reader XI (v11.0.1). It's just nightmarish for the eyes :) Any fix planned ?

Best regards ar1101 ff5602

asmith3006 commented 5 years ago

I have the same issues with Firefox 64.0

Is there any chance of this being resolved? I'm going to have to switch my staff to use Chrome instead of Firefox as a result of this sadly.

kno10 commented 4 years ago

Here is a small test file (7.6k) that renders fine in all my PDF viewers except pdf.js: optics-multiple-plot.pdf

THausherr commented 4 years ago

The image in that PDF has /Interpolate set to false, but the PDF is rendered like this: grafik

THausherr commented 3 years ago

When /Interpolate isn't set, interpolation should be done only when scaling down, not when scaling up

Snuffleupagus commented 3 years ago

When /Interpolate isn't set, interpolation should be done only when scaling down, not when scaling up

Hopefully that could be the missing piece here, since the last time we tried directly using /Interpolate (in PR #8338) there were a lot of regressions all over the reference tests.