Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double-clicking ImageView without a loaded image freezes #67

Closed
azaroth42 opened this issue Dec 16, 2013 · 3 comments
Closed

Double-clicking ImageView without a loaded image freezes #67

azaroth42 opened this issue Dec 16, 2013 · 3 comments
Assignees
Milestone

Comments

@azaroth42
Copy link
Contributor

Steps to reproduce:

Expected behaviour:

  • Nothing

Actual behaviour:

  • Mirador completely locks up
@ghost ghost assigned jchristo4 Jan 31, 2014
@jchristo4 jchristo4 assigned aeschylus and unassigned jchristo4 Feb 5, 2014
@aeschylus
Copy link
Contributor

I've narrowed this down to something in the initialisation of the osd viewport, but the error seems to only occur in manuscripts with no annotations. It may be in OSD itself, but still investigating.

@aeschylus
Copy link
Contributor

Actually, it seems the manuscript mentioned is lacking part of the tile source information needed for OSD to render a canvas correctly.

I've added a default tile size into mirador.js that will provide for the case where a manifest does not list a tilesize. This solved the issue of OSD trying to render a canvas with infinitesimally-small tiles.

@regisrob
Copy link

Yes I can confirm this, the bug is from OSD. It is because Sanddragon at BL does not provide any tile dimensions in info.json (tile_width and tile_height). And since the version of OSD built with Mirador does not include IIIF1_1tilesource implementation, every info request is treated as an IIIFTileSource implementation and thus causes OSD to fail because it needs at least tile_width (unlike IIIF1_1TileSource, it does not use the short dimension if there aren't tile sizes provided : see this commit by jstroop : openseadragon/openseadragon@22587ce, solving this issue : openseadragon/openseadragon#286)

That's why the BL hacked OSD to make their Mirador instance work with IIIFTileSource: see http://sanddragon.bl.uk/mirador/mirador.js (line 13282)

But nevermind if the issue is solved by iiif.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants