samvera / node-iiif

This module provides a full-featured IIIF Image API 2.1 and 3.0 image processor. It covers only the image processing pipeline itself, leaving input and output to the caller.
Apache License 2.0
27 stars 5 forks source link

Read additional sharp constructor options from SHARP_OPTIONS environment variable #27

Closed mbklein closed 1 year ago

mbklein commented 1 year ago

This is to allow quick iteration and experimentation with different Sharp settings in serverless-iiif. For example, I've found using tiny-iiif that some of our images process much faster using the sequentialRead: true option. This change would allow those settings to be tried out without changing default behavior or the external interface/API at all.

Also adds debug package for selective debug output

mbklein commented 1 year ago

After some more experimentation, I'm going to close this unmerged and submit something new with a more comprehensive solution to the problem I was trying to solve with this.