openlibhums / openlibhums/janeway

Janeway embedded PDF.js viewer distorting images

Open
#5,338 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
238
Forks
97
Avg merge
9d 1h
Merged PRs (30d)
8

Description

Describe the bug
Images in PDFs can get warped in Janeway's viewer. Based on reports in pdf.js issues, this may be due to Janeway using an older version of the PDF.js viewer (1.6.319); included in comparison is the same PDF loaded in our repo, which uses a newer version of pdf.js (3.11)

Image

Janeway version
1.7.x

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating Janeway's embedded PDF.js viewer and its pinned 1.6.319 assets or configuration. Reproduce the distortion with the EarthArXiv example, compare it with the repository's PDF.js 3.11 viewer, and verify that the affected PDF images render without warping.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.