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

Compliance with the IIIF Image API 2.0 #4

Closed
reinink opened this issue Dec 31, 2014 · 4 comments
Closed

Compliance with the IIIF Image API 2.0 #4

reinink opened this issue Dec 31, 2014 · 4 comments

Comments

@reinink
Copy link
Contributor

reinink commented Dec 31, 2014

As per @alexbilbie's suggestion, it may be worth investigating adding IIIF Image API 2.0 compliance to Glide. Their URI spec is as follows:

{scheme}://{server}{/prefix}/{identifier}/{region}/{size}/{rotation}/{quality}.{format}
  • identifier - source file
  • region - crop area
  • size - target size
  • rotation - orientation
  • quality - basically effects (color, grayscale or black/white)
  • format - jpg, tif, png, gif, jp2, pdf, webp

The biggest challenge I see is that this limits Glide quite a bit, as the original intent of this spec wasn't for image manipulation:

This API was conceived of to facilitate systematic reuse of image resources in digital image repositories maintained by cultural heritage organizations. It could be adopted by any image repository or service, and can be used to retrieve static images in response to a properly constructed URI.

However, Glide could still offer compliance, albeit with only a subset of the overall feature set. We could offer a URI parser to do this work. Something like:

$glide = Glide\Factory::server([
    'source' => 'images',
    'cache' => 'cache',
]);

$parser = new Glide\UriParser\IIIF($request);

$glide->outputImage(
    $parser->filename(),
    $parser->params()
);
@alexbilbie
Copy link
Contributor

So during presentation I saw from the guys who wrote the spec they demonstrated their use-case which was sharing pages from digitised historical manuscripts between academic institutions. They were focussing on the sharing aspect but in essence what their API does (IMO) is facilitate image manipulation.

Perhaps IIIF compliance is actually something that can be solved through a StackPHP middleware instead of the core library

@reinink
Copy link
Contributor Author

reinink commented Dec 31, 2014

I've posted a message on the IIIF mailing list, but it's not approved yet. Once it has been I'll add it to this ticket.

Perhaps IIIF compliance is actually something that can be solved through a StackPHP middleware instead of the core library

Love it!

@reinink
Copy link
Contributor Author

reinink commented Jan 3, 2015

You can follow the discussion with the IIIF here. Sounds like this is doable, although we will need to add JSON information responses, which sounds like a good idea anyway.

@reinink
Copy link
Contributor Author

reinink commented Jun 15, 2015

I'm going to close this issue for now. Not because I don't want to do this, but because I just don't have the capacity right now. It's something we can revisit in the future

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

No branches or pull requests

2 participants