-
Notifications
You must be signed in to change notification settings - Fork 20
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
How to customize serverless-iiif #20
Comments
Hi @ryantomaselli! Thanks for asking. A little background about the project may help. The TIFF limitation isn't a hard technical limitation – the server will work with whatever source image you give it, as long as it can be read by the sharp image library. I chose pre-tiled pyramid TIFFs because they already have multiple resolutions and tiles embedded in them, so sharp can carve them up more efficiently than other formats. But as long as the source image is accessible and sharp can parse it, it should be fine. Same with the headers – I went with a sane default for a public server just to prove the concept. The hard-coded In that vein, perhaps moving the response headers into a resolver would solve that issue for you as well, along with more documentation on how to easily deploy a customized version of the server. (Did you deploy your existing service using the Serverless App Repository link, or the command-line We're just now working on moving |
Ah! Thanks for the detailed response @mbklein, that helps. Yes I did deploy using the Serverless App Repository link and I made the edits to those 2 files using AWS Console directly (for now). Some documentation on "how to easily deploy a customized version of the server" would be unreal. Great to hear this project will getting more investment! |
@ryantomaselli |
Hey guys;
Firstly thanks to all who built serverless-iiif. It's working great.
I have need to override the headers that are returned here:
https://github.com/nulib/serverless-iiif/blob/v2.0.1/src/index.js#L46
Also, would it be possible to allow for more than just tiff images on this line:
https://github.com/nulib/serverless-iiif/blob/v2.0.1/src/resolvers.js#L7
Is there intention to make those bits configurable?
Is there a reason for having the service only work on tifs?
Thanks for any pointers.
The text was updated successfully, but these errors were encountered: