Overview

This is a personal note on how to deliver IIIF images using mdx.jp object storage and Cantaloupe Image Server, one of the IIIF image servers.

Background

In the following article, I introduced how to deliver images using mdx.jp object storage.

In the following article, I introduced how to deliver images stored in Amazon S3 using Cantaloupe Image Server.

By combining these approaches, we aim to address the cost challenges of IIIF image delivery in digital archives.

Method

We will use the Docker version of Cantaloupe introduced in the following article.

You can download the source code from the following repository.

https://github.com/nakamura196/docker_cantaloupe_s3

Rename the included .env.sample to .env and modify the settings.

#C##CCCCAAAAAaNmCNNNNwTdATTTTsAxNAAAAL.TLLLLsOjAOOOO3UpLUUUUPOPPPPEUEEEE_P____SESSSS3_3333SSSSSSO3OOOOUSUUUURORRRRCUCCCCEREEEE_C____EEASRBN_CEEADECCGSPNERIIODSEOCIPSTNLNO__=OTIKKO=NEEKTYYU=_=PhIStDTt=RpAsT:E/G/Ys_3BdUsC.KmEdTx_.NjApME=

The key point is CANTALOUPE_S3SOURCE_ENDPOINT. Set it to https://s3ds.mdx.jp, and configure the obtained ACCESS_KEY_ID, SECRET_KEY, and the created BUCKET_NAME and REGION.

Demo

We will use an image from Irasutoya, which was also used in the article mentioned at the beginning.

https://www.irasutoya.com/2016/09/blog-post_810.html

Below is an example of delivering the same uploaded image file using Cantaloupe.

  • info.json

https://cantaloupe.aws.ldas.jp/iiif/3/baby_asia_boy.png/info.json

  • Grayscale: full/max/0/gray.jpg

https://cantaloupe.aws.ldas.jp/iiif/3/baby_asia_boy.png/full/max/0/gray.jpg

Note that when delivering images using Cantaloupe, the ACL setting (granting Read permission to Everyone) performed in the above article is not necessary. By using the default settings, you can prevent direct access to image files on the object storage while allowing access only through Cantaloupe.

By combining the Access Control settings on the Cantaloupe side, as introduced in the following article, access control can be achieved.

Summary

As a method for delivering images stored in Amazon S3 as IIIF images, there is also the following approach. I would like to investigate whether it also supports object storage other than Amazon S3 in the future.

I hope this serves as a useful reference for IIIF image delivery.