From d3d9438f42917e623d85d234e440fe801bf44a4c Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Witt" Date: Mon, 3 Jun 2024 19:27:55 -0700 Subject: [PATCH] cantaloupe updates --- dhsi/day-one/cantaloupe.md | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/dhsi/day-one/cantaloupe.md b/dhsi/day-one/cantaloupe.md index a478fa55..e9cec9ad 100644 --- a/dhsi/day-one/cantaloupe.md +++ b/dhsi/day-one/cantaloupe.md @@ -48,23 +48,34 @@ We will modify some properties here later, but the default properties should be In vscode go to the terminal and run: +Mac `$ java -Dcantaloupe.config=./cantaloupe.properties -Xmx2g -jar Cantaloupe-5.0.6.jar` +Windows +`$ java -Dcantaloupe.config=.\cantaloupe.properties -Xmx2g -jar cantaloupe-5.0.6.jar` + Now navigate to [http://127.0.0.1:8182](http://127.0.0.1:8182) in your browser. - +Change the port visibility to "public" and then follow the Code Space prompts to view your working instance in browser. + ## Configuring Cantaloupe @@ -78,6 +89,8 @@ We've already created this configuration file, called `cantaloupe.properties` Let's hook up cantaloupe to your own images. +#### On your local computer + Find or create a new directory of images somewhere on your computer and call it `myImages`. Now you just need to get the full path to this image directory. @@ -93,7 +106,21 @@ Now in the `FilesystemSource` section of the properties file, we want to change As the comments note, make sure there is a trailing slash. -Restart your Cantaloupe server. Your images should now be available and responsive to the IIIF Image API parameters. +http://localhost:8182/iiif/3//full/max/0/default.jpg + +#### In Code Space + +In Code Space, I've already created an images folder with a demo images, so you should change this to... + +`FilesystemSource.BasicLookupStrategy.path_prefix = ./images/` + +As the comments note, make sure there is a trailing slash. + +In Code Space you should be able to see your sample image here: + +/iiif/3/vangough.jpg/full/max/0/default.jpg + +To add your own images right click on `images` and select `upload` ### Enabling the admin dashboard