Page MenuHomePhabricator

OSD: Original image gets removed when layout gets toggled
Closed, ResolvedPublic

Description

When the layout gets toggled, the original hidden image (inside the prp-page-image div) is overwritten. If any script wants to retrieve data on which image was loaded, they need to use internal Openseadragon APIs (namely mw.proofreadpage.viewer.tileSources) to retrieve the image URLs.

Event Timeline

Change 740334 had a related patch set uploaded (by Sohom Datta; author: Sohom Datta):

[mediawiki/extensions/ProofreadPage@master] OSD: Prevent original image from getting overwritten by OSD

https://gerrit.wikimedia.org/r/740334

Change 740334 merged by jenkins-bot:

[mediawiki/extensions/ProofreadPage@master] OSD: Prevent original image from getting overwritten by OSD

https://gerrit.wikimedia.org/r/740334

Inductiveload subscribed.

This has been changed.

Also, since then, it's now also possible to access the URL properly with mw.config.get( 'prpImageThumbnail' )