Skip to content
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

fix(pdf): fix for blurry/pixelated images #1466

Merged
merged 4 commits into from
Jan 25, 2023

Conversation

bfoxx1906
Copy link
Contributor

@bfoxx1906 bfoxx1906 commented Jan 24, 2023

Altering pdf.js to ignore image interpolation values set to false. This was causing images to show up blurry. This code in question was added in this PR . The change is in the method getImageSmoothingEnabled in pdf.js. Additionally, I added a new version of pdf.js(2.90.0) in the third party directory to match this upgraded version of preview.

@bfoxx1906 bfoxx1906 requested a review from a team as a code owner January 24, 2023 01:04
@CLAassistant
Copy link

CLAassistant commented Jan 24, 2023

CLA assistant check
All committers have signed the CLA.

karelee7
karelee7 previously approved these changes Jan 24, 2023
package.json Outdated Show resolved Hide resolved
@jstoffan
Copy link
Collaborator

@bfoxx1906, can you add some comments in the diff to explain what the actual change was? Do we plan to add a sed command to the upgrade_pdfjs.sh script to prevent this issue in the future?

@jstoffan
Copy link
Collaborator

@bfoxx1906, did we update pdf.min.js, as well? It looks like the E2E suite is failing at the moment.

@bfoxx1906 bfoxx1906 merged commit b749108 into box:master Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants