Overview

This is a note on how to serve images stored in Amazon S3 using Cantaloupe Image Server, one of the IIIF image servers.

As an alternative method for serving images stored in Amazon S3, I also introduced an approach in the following article. (The tools may have been updated since the article was written, so the instructions may not work exactly as described.)

Configuration

The official manual is available at the following link.

https://cantaloupe-project.github.io/manual/5.0/sources.html#S3Source

Edit the following file:

/cantaloupe-5.0.5/cantaloupe.properties

First, change source.static to S3Source.

######s##o#S#U`su#O#sHor#U#etuc#R#stre#C#pc.#E#oSes#S#no.t##eusa##rtt##scai##oetc##u`i##r,c=##c##e`=S##J3##fdFS##obio##rclu##Ser##aosc##luye##lrs##ct##ree##e`m##q,S##uo##e`u##sSr##t3c##sSe##.o##u##Ar##vc##ae##i`##l,##a##ba##ln##ed####v`##aA##lz##uu##er##se##S##at##ro##er##a##`g##Fe##iS##lo##eu##sr##yc##se##t`##e.##m##S##o##u##r##c##e##`,

Next, configure S3Source.access_key_id, S3Source.secret_key, and S3Source.BasicLookupStrategy.bucket.name.

####S#S####SS###S#S--333333-S-!S!S!SNiSSH`dS!S-3-!o!o!eotoooSyo!o-S-uuetuuwcnuu-o-ErArC:ehrrrarNr-u-ncWcrecctimcac-r-deSeehtreeopieme-c-p..dthe..tc.e.-e-oerreta;aslLlB--ineenptceoolooa--ndggt:sccoooofs--tpiii/teerkkoki--oooa/heseukutc--UinnlaistupuphL--Rn.swst__pSp_eo--It=shkktsso--.Of.ieeeor;tbk--=noanyybaruu--Olrmfu_jtsacp--nyaosi=eeetkS--lyzedcgeeet--ynoocr<tygtr--euna=ss`tya--ner.nme..hct--edca<ce=oe--eeAobnarASng--ddWmeucelcuBty--eS/actlrsaa.--dfsoleoiesib--oaeb.skwprinu--frcctseetcic--ocuaydLmLnk--rAorik>oaoge--Wuinevonot--nSnteyakuki.--otyd>luaumn--ne.-uplpaa---ncfeS.Sgm--Adrrsttee--WpeorrsSodmaaa=iertttenneeeeo<nttlggbdsis`yybup.aeBecolwaukishssseneieettrcsrseLvn.oaearodmakd.etue>hpleSertgratathteaengmyes`tehtaotndidnfgor

With this, images stored in Amazon S3 are now referenced.

Other Notes

For uploading images to Amazon S3, I used the AWS CLI (Amazon Web Services Command Line Interface) with the following command.

awss3sync<pathtolocalimagefolder>s3://<bucketname>/<S3path>-exclude"*/.DS_Store"

Summary

I hope this is helpful for using Cantaloupe Image Server.