How to display the image from aws s3 folder with iiif viewer?

523 views
Skip to first unread message

AK.Bharath Rajan

unread,
Aug 25, 2019, 9:12:36 PM8/25/19
to IIIF Discuss

Hi All,

I dont have much knowledge with iif.

Currently I am working on a project which uses iiif.  It was using openseadragon for viewing the image.  

Initially, it was working fine. now the images are moved to s3.  

assume the s3 image path is like


and iiif is runnning like

http://*.*.*.*/iiif//full/!NaN,NaN/0/default.jpg

I dont know to display the image with iiif viewer.

Please help me in resolving this issue.

Thank you,

Bharath AK

AK.Bharath Rajan

unread,
Aug 25, 2019, 9:52:15 PM8/25/19
to IIIF Discuss
Hi All,

     for your information, I am not storing any images on iiif Server, I am just only displaying images with openseadragon.  
I am using reactjs as front end.

Thank you,

AK.Bharath Rajan

unread,
Aug 26, 2019, 11:53:00 PM8/26/19
to IIIF Discuss
Hi All,

I had tried encoding the s3 path and tried displaying the image, with the url

http://*.*.*.*/iiif/(s3image path)/full/!NaN,NaN/0/default.jpg

but it is not working.

Please help me in resolving this issue.

Thank you,
Bharath AK

Danny Michaels

unread,
Aug 28, 2019, 9:47:06 AM8/28/19
to iiif-d...@googlegroups.com
Hello Bharath,
I suspect someone responded privately, but just in case I'll provide some quick advise, for what its worth, and you can reply privately or on Slack to keep the listserv clean. 
You said earlier that, "I am not storing any images on iiif Server". This is the problem. IIIF URLs simply won't work with any image storage (S3 or localhost or other) without a IIIF image server to translate the coordinates, tiles, etc. Perhaps it's confusing because OpenSeadragon supports IIIF. But keep in mind that OpenSeadragon is a document viewer, and NOT an image server. 
If you look at the IIIF example on the OpenSeadragon website (https://openseadragon.github.io/examples/tilesource-iiif/), you'll find that the images being viewed resolve to IIIF image servers. [see line 10 of the first example, "@id": "https://libimages1.princeton.edu/loris/pudl0001%2F4609321%2Fs42%2F00000001.jp2"...the word "loris" in the URL refers to their IIIF image server]. In short, you need a IIIF image server, even when using OpenSeadragon. I recommend experimenting on localhost with Cantaloupe or other IIIF image servers. 
Regarding S3 for image storage, it can be done with IIIF image servers but you may need to cache the images on your image server. As far as I know, S3 cannot deliver parts of image data (i.e., its all or nothing, so they can't grab individual tiles from inside a JP2 or TIF), which paralyzes the main elements of IIIF. Since our entire infrastructure is on AWS, we use an auto-scaling Cantaloupe cluster (i.e, our IIIF image servers) bound with EFS (Elastic File System) to S3 and it works brilliantly. We also store our original raw TIFs on AWS Glacier. So the progression is from Glacier -> S3 -> EFS--Cantaloupe -> web application. But this is a much bigger discussion as it requires advanced configuration on AWS. I recommend directing specific technical questions to the Slack channel.
I hope this makes sense. 
Regards,
Danny

Daniel T. Michaels, Ph.D.
Chief Technology Officer
National Institute for Newman Studies
211 N. Dithridge St.
Pittsburgh, PA 15213


--
-- You received this message because you are subscribed to the IIIF-Discuss Google group. To post to this group, send email to iiif-d...@googlegroups.com. To unsubscribe from this group, send email to iiif-discuss...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/iiif-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "IIIF Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iiif-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iiif-discuss/f29dc40b-7a5b-4daa-894c-16bff47bcab1%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages