-
Notifications
You must be signed in to change notification settings - Fork 13
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
IIIF Image API #8
Comments
Thanks @thanneken! I'm working on a PR implementing your suggesting.
Why are you using Concerning masking of |
A pull request sounds like a great idea. My head is not entirely in the code after all this time, but I would still think it good to allow the Adding a variable for |
I think we can find a simpler solution. Since the name of the RTI coefficient planes is fixed (plane_0, plane_1, plane_2), we need only the full path to the json file: iiifPath: http://server.com/path/plane_0.jp2/info.json the code should only take care to replace "plane_0" with "plane_1" and replace "/info.json" with the parameters of the file. |
I really appreciate many of the features in Relight. Among them is support for IIIF Image API as a tile source. It's not quite all the way there, though. I see "?IIIF=" in the viewer code, which makes me think it was developed on IIP in IIIF mode. The actual IIIF Image API uses only slashes as delimiters, so earlier IIP versions required a rewrite in the web server. The current IIP handles that internally.
I was able to get it to work by modifying two lines and adding two arguments in the HTML, as follows.
The first substitution is to replace:
t.metaDataURL = t.server + "?IIIF=" + t.path + "/" + t.img + "/info.json";
with:
t.metaDataURL = t.iiifServer + t.iiifPath + '/' + t.img + '.jp2/info.json';
The second substitution is to replace:
return t.server+
?IIIF=${t.path}/${t.img}/${xr},${yr},${wr},${hr}/${ws},${hs}/0/default.jpg};
with:
return t.iiifServer + t.iiifPath + '/' + image + '.jp2/'+\
${xr},${yr},${wr},${hr}/${ws},${hs}/0/default.jpg`;`For general support the .jp2 should not be assumed since many repositories mask it. It could be in the
iiifPath
argument. There are many situations in whichiiifServer
andiiifPath
could not be derived from variables already defined.If you're curious how I'm using Relight, see: http://jubilees.stmarytx.edu/2020/relight.html
The text was updated successfully, but these errors were encountered: