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

Add support for webp next generation image format #6

Closed theiawolfe closed 3 years ago

theiawolfe commented 3 years ago

I wanted to find out if I could add support for the webp image format on serverless-iiif. It looks like Sharp supports the format out of the box, so it's just a matter of adding it to the filenameRe regex and the format array in this repository, and then one similar change in serverless-iiif. https://github.com/ndlib/serverless-iiif/pull/12.

Example webp image: https://image-iiif.library.nd.edu/iiif/2/002097132%2FBOO_002097132-00a/full/full/0/default.webp

If this looks okay, I can open a second PR on serverless-iiif adding webp to the appropriate regex and bump the minimum version for this package in the package.json