Page MenuHomePhabricator

IA Upload: embedded text is offset by one page when generating new DJVU from page scans
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Choose a work from Internet Archive that has JPEG2000 page scans, but no DJVU file
  • Click through the form choosing to generate a new DJVU file from the original page scans

What happens?:

  • Upload succeeds
  • Text layer of a page is assigned to the page prior (e.g,, the OCR'd, embedded text of page 15 appears on page 14)
  • This can be most readily seen in proofread view on Wikisource, For example, click on an arbitrary redlinked page number on this index page: https://en.wikisource.org/wiki/Index:White_Peaks_and_Green.djvu
  • Here's a direct link to page 14 of that work, which shows the pre-populated text from page 15: https://en.wikisource.org/w/index.php?title=Page:White_Peaks_and_Green.djvu/14&action=edit&redlink=1
  • I can't be certain that "generate new DJVU file from original page scans" is the cause of this error, but I have uploaded many files from Internet Archive using this tool, and it seems to me that the problem arises in that case. DJVU files transferred directly from IA seem to be fine.

What should have happened instead?:

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):