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

Fix calculator#fullSize() #31

Closed mbklein closed 4 months ago

mbklein commented 4 months ago

There was a bug in calculator/base.js (essentially based on me trying to be too clever with size calculations) that was causing errors when using absolute pixel values for region cropping. This version fixes that calculation, and updates a few test expectations based on changes in rounding as a result. I've already pushed it to NPM as v4.0.5-rc.0 to make it easier to test with serverless-iiif.