scaife-viewer / beyond-translation-site

Site used to iterate on translation alignments within the Scaife Viewer ecosystem
3 stars 4 forks source link

Prevent drift between ROI coordinates and where Open Seadragon renders the overlay #108

Closed jacobwegner closed 1 year ago

jacobwegner commented 1 year ago

(Originally reported by @pletcher)

@pletcher: I created a CodePen that reproduces the issue you were seeing within Beyond Translation / the Scaife Viewer frontend:

https://codepen.io/jacobwegner/full/QWBqLXo

image

This differs from the same coordinates being passed directly to the IIIF server:

https://image.library.jhu.edu/iiif/homer%2FVA%2FVA012RN-0013/pct:6.11,22.52,46.75,9.01/full/0/default.jpg

image

I'll keep digging into Open Seadragon to see if I can figure out what is going on.

jacobwegner commented 1 year ago

@pletcher: I've got a lead on this...will loop back soon.

jacobwegner commented 1 year ago

@pletcher: Please check out the updated CodePen; I've left some comments on why we were seeing the drift. Feel free to adapt this into your work within scaife-viewer/frontend:

https://codepen.io/jacobwegner/pen/QWBqLXo

image
pletcher commented 1 year ago

Amazing, thank you, @jacobwegner !