In order to display the images related to a specific document, Ecco's backend (manifest_factory.py) fetches the gallica IIIF manifest for the volume of a particular witness and filter its canvases in the json key "sequences" (["sequences"][0]["canvases"]) :
On a regular basis, the gallica IIIF manifest returns invalid image width and height :
Assertion failed: [Viewport._setContentBounds] bounds.width must be greater than 0
Assertion failed: [Viewport._setContentBounds] bounds.height must be greater than 0
in Mirador's OpenSeadragon dependency.
This is causing the Ecco's Mirador Viewer to fail irremediably : it needs to be closed and reopened. The images cannot be accessed otherwise (even by clicking on Previous/Next or Zoom reset or accessing the image via Mirador's Gallery View).
In order to display the images related to a specific document, Ecco's backend (manifest_factory.py) fetches the gallica IIIF manifest for the volume of a particular witness and filter its canvases in the json key "sequences" (["sequences"][0]["canvases"]) :
On a regular basis, the gallica IIIF manifest returns invalid image width and height :
["sequences"][0]["canvases"][canvas index]["width"] = -1 ["sequences"][0]["canvases"][canvas index]["height"] = -1
as shown below :
This is causing the following errors :
Assertion failed: [Viewport._setContentBounds] bounds.width must be greater than 0 Assertion failed: [Viewport._setContentBounds] bounds.height must be greater than 0
in Mirador's OpenSeadragon dependency.
This is causing the Ecco's Mirador Viewer to fail irremediably : it needs to be closed and reopened. The images cannot be accessed otherwise (even by clicking on Previous/Next or Zoom reset or accessing the image via Mirador's Gallery View).