You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As @markpbaggett noticed it might occur that multiple requests to the same URL are done when using set_hwd_from_iiif helper for retrieving the info.json file of a IIIF resource and getting the width and the height of the image.
@giacomomarchioro, another question that I've been thinking about that might be related to @glenrobson 's question.
Assuming that create_thumbnail_from_iiif() eventually gets approved and merged, it would be awesome to integrate this with the make_canvas_from_iiif() helper which also makes a request on the info.json. With what you've been working on with functools and lru_cache, what's the best way to store the request in memory or as Glen asks store and pass a cached request if the request has already occurred so that we only have to get the image info back once?
As @markpbaggett noticed it might occur that multiple requests to the same URL are done when using
set_hwd_from_iiif
helper for retrieving theinfo.json
file of a IIIF resource and getting thewidth
and theheight
of the image.iiif-prezi3/iiif_prezi3/helpers/set_hwd_from_iiif.py
Line 25 in a3551e9
For instance this is used at least twice (at Canvas level and resource level) for each Canvas supporting image servers.
The text was updated successfully, but these errors were encountered: