Page MenuHomePhabricator

After overwriting PDF file, "Failed to initialize OpenSeadragon, no image found" error
Closed, DuplicatePublicBUG REPORT

Description

I Removed a page from File:Divar.pdf using Adobe Acrobat Pro and reuploaded it. Now I get "Failed to initialize OpenSeadragon, no image found" error on Persian Wikisource.

Event Timeline

Restricted Application added subscribers: Huji, Aklapper. · View Herald Transcript
Aklapper renamed this task from overwriting pdf problem to After overwriting PDF file, "Failed to initialize OpenSeadragon, no image found" error.Apr 1 2023, 12:56 PM
Aklapper edited projects, added ProofreadPage; removed Community-Tech, Wikimedia OCR, Commons.

@Hanooz: Thanks for reporting this. In the future please always use the bug report form and always fill in the sections in the template, instead of deleting them.

Also, please always do provide links as the bug report template requests.

https://commons.wikimedia.org/wiki/File:Divar.pdf

It looks like no images (of any pages) for that PDF are showing in the Page namespace, including when not editing: https://fa.wikisource.org/wiki/%D8%A8%D8%B1%DA%AF%D9%87:Divar.pdf/%DB%B7%DB%B7

This bug doesn't seem like it's related to the OpenSeadragon component in ProofreadPage, but perhaps somewhere like PageDisplayHandler::getImageTransform()? Or PdfHandler? If the PDF had its pages changed, I guess the old pagination is being cached somewhere?

This is probably something wrong with MediaWiki-extensions-PdfHandler or Thumbor. ProofreadPage and Openseadragon are thin wrapper around the API provided by them

I think there is an argument for making the Openseadragon error less robotic 😄

The problem is that Openseadragon has no idea why the image did not generate and so has no way of knowing what went wrong :( We probably want to provide some kind of error serverside when this happens