Extension talk:Proofread Page/Page viewer

Read pixels in the scanned image from a script
Hi,

Is it possible, from a script, to read (and maybe modify) pixels from the scanned image (at Wikisource)? Unless I'm wrong, the Openseadragon API allows to zoom and pan the image, but not to actually read or modify pixels, and using the standard Canvas.getImageData API (something like ) returns a CORS security error.

The only way I could find to avoid the CORS error was to load the image again, which looks like wasting network resources (and worsening loading time for the user). Accessing the image displayed by Proofreader and OSD would be much more convenient. Seudo (talk) 10:14, 10 March 2023 (UTC)


 * @Seudo Can you file a phabricator ticket documenting what you are trying to do, we can support if there isn't a easy to way to do it. Sohom Datta (talk) 21:30, 8 June 2023 (UTC)