universalviewer icon indicating copy to clipboard operation
universalviewer copied to clipboard

Use canonical form of Image URI

Open tomcrane opened this issue 9 years ago • 3 comments
trafficstars

Any thumbnail request or image URI generated for "download current view" and similar should use the canonical URI syntax:

http://iiif.io/api/image/2.0/#canonical-uri-syntax

maybe: any image URI should be run through a "canonicalise(..)" function in Manifesto before being emitted to the UI

Related to

https://github.com/UniversalViewer/universalviewer/issues/145 https://github.com/UniversalViewer/universalviewer/issues/102

Note: img 1.1 does not have a formal canonical defn, 2.0 and 2.1 do, and a future version will have a slightly different one because of an inconsistency in the spec. But that's OK, the canonicalise function always knows the target version.

Note 2: Maybe use the same code that OpenSeadragon uses for this (OSD always requests canonical form)

tomcrane avatar Nov 25 '15 12:11 tomcrane

Is there any plan to get that done? How difficult would that be for someone with no knowledge of the code base to make a PR?

eroux avatar May 18 '18 15:05 eroux

All issues will be triaged for further investigation or closure by the 28 September 2023. If your issue is still relevant and would like for it be investigated further please comment by 14 September 2023.

LlGC-szw avatar Aug 25 '23 11:08 LlGC-szw

This is a nice-to-have for me; it's not affecting the performance of the UV; it's more of courtesy to publishers of IIIF images.

NB the canonical form is different in IIIF Image API v3; it's worth checking that for v3 the UV hasn't fixed the problem itself.

tomcrane avatar Nov 05 '23 17:11 tomcrane