Skip to content
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

Cantaloupe Support JP2 out of the box #216

Merged
merged 5 commits into from
May 4, 2022
Merged

Conversation

alxp
Copy link
Contributor

@alxp alxp commented May 4, 2022

What does this Pull Request do?

The Cantaloupe image viewer was not properly set up to support JP2 out of the box.

What's new?

Added a few configurations and packages to load OpenJP2.
OPenJP2 tools Ubuntu package
Explicitly set manual selection strategy for Cantaloupe
Use OpenJP2 rather than Grok. Keeping Grok as it is used to generate derivatives

  • Does this change add any new dependencies?

OpenJP2-tools Ubuntu packages

  • Does this change require any other modifications to be made to the repository

no

  • Could this change impact execution of existing code?

No

How should this be tested?

From fresh playbook install:

  1. Create a Repository Item object of type Page
  2. Add Media of type File with a JP2, and tagged as Original File.
  3. Copy the URL where the JP2 gets put, should be a /_flysystem URL
  4. URL-encode the image URL, e.g.,
$ php
<?php 
print(urlencode($url)):
  1. GO to the Cantaloupe IIIF endpoints with this encoded URL:

http://localhost:8080/cantaloupe/iiif/2/{identifier}/info.json
http://localhost:8080/cantaloupe/iiif/2/{identifier}/full/full/0/default.jpg

You should see the JSON info and a tiled version of the image at those URLs.

Interested parties

Tag (@ mention) interested parties or, if unsure, @Islandora-Devops/committers

@jordandukart jordandukart self-assigned this May 4, 2022
Copy link
Contributor

@jordandukart jordandukart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as intended.

@jordandukart jordandukart merged commit 942fa7a into dev May 4, 2022
@rosiel rosiel deleted the 214-cantaloupe-jp2 branch September 19, 2022 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants