Only features and major fixes are listed. Everything else can be considered a minor bugfix or maintenance release.
- Update
pathPrefix
constructor option to accept a{{version}}
placeholder and RegExp elements (default:/iiif/{{version}}/
)
- Export
Calculator
- Make
sharp
an optional dependency for those who just want to useCalculator
- Add support for IIIF Image API v3.0.0 alongside support for v2.1.1
- Add
canonicalLink
andprofileLink
properties to the response to support the respective link header features (see example of how to use this) - Add
version
toIIIF.Processor
constructor options - [BREAKING CHANGE] The
maxWidth
option was changed tomax: { width, height, area }
in order to support the IIIFmaxHeight
andmaxArea
constraints
- Major refactor to support multi-resolution source images
- Backward-compatible overhaul of
dimensionFunction
- Split
Calculator
out fromOperations
to make certain pre-transform information available with low overhead - Use
sharp.metadata()
instead ofprobe-image-size
in default dimension function
- Support dimension probing for JPEG 2000 images
- Add
pathPrefix
option (default:/iiif/2/
) to constructor instead of popping a specific number of path segments off of the end of the URL
-
[BREAKING CHANGE] The
id
parameter passed to the stream resolver and dimensions callback was changed from astring
to anobject
containing theid
andbaseUrl
.To maintain the existing behavior, you can use destructuring of the argument. For example:
streamResolver(id) { } // old streamResolver(id, callback) { } // old streamResolver({ id }) { } // new streamResolver({ id }, callback) { } // new dimensionFunction(id) { } // old dimensionFunction({ id }) { } // new
See issue #19 for context on why this change was made.
-
Use a consistent name for dimensions function in
README.md
- Add pixel density option
- Improve documentation
- Full test coverage
- Allow transformation to include existing metadata
- Allow
.tiff
and.webp
requests - Accept
.tif
and.jpeg
- Add optional dimension function and
maxWidth
parameter to initializer
- Initial release