Replies: 1 comment 5 replies
-
I'm not totally clear on the use case you're describing. The extension at the end of the URI is used to determine the output format of the derived image, not the extension of the source image. For example, in the default configuration, if I request:
serverless-iiif is going to do the following:
Step 1 above is what the resolver template is used for. With its default value It sounds like in your case, most of your source images are JPEG but some are TIFF. Your preflight function will need to parse the URL to get the requested image ID, figure out the source location for the image identified by that ID, and put it in the It looks to me like you are reading the event correctly, but I noticed one other issue with your lambda function: The CORS headers ( Is there anything specific about the error in your lambda function CloudWatch logs? It can be tricky to find the right log for a Lambda@Edge function – the log itself is stored in the CloudWatch region where the function was invoked, not where it was deployed, but the log name includes the region where the function is deployed. For example, I have a IIIF server deployed in the One last thought: is |
Beta Was this translation helpful? Give feedback.
-
I have setup cloudfront serverless-iiif to accept .jpg requests in the resolver template. However, I want to also process occasional requests for .tif. As advised by @mbklein , one of our devs created an Edge Lambda function. Unfortunately, it returns an Unknown Error. If someone can comment on what changes are needed to make it work, it would be greatly appreciated. Perhaps, we are not reading the event correctly.
Beta Was this translation helpful? Give feedback.
All reactions