CenterForDigitalHumanities / TPEN28

Split front/back ends from each other
3 stars 2 forks source link

Image Streams Don't Resolve To Be Cached #704

Open thehabes opened 1 year ago

thehabes commented 1 year ago

When getUncachedImageStream cannot resolve the URL, it will use Image dimensions 1, 1 instead of being omitted or using/returning 0, 0. This means the Canvases with these images are all 1000, 1000 and the images themselves are all 1, 1 in the Manifests, which will absolutely wreck all attempts at interoperability. However, somehow the TPEN interface manages because after some time it does resolve the image.

Our best idea, already referenced in #703, is to let the interface detect this scenario and after it loads the images and has dimensions to update the cached dimensions for the folio (per folio, one at a time, as the interface resolves the image so the user will not experience any extra delay).