Description
The programs at the National Gallery often use Collection images for their events and we want to use any collection image for the calendar's thumbnails. The thumbnails are set as a background-image on a 250px square container, which automatically crops excess image. By default, it shows the center of the image, but we can also set up an extra control that uses CSS to set a focal point for the cropping (e.g. upper right, lower right, etc). However, we would ideally like to be able to formulate a IIIF Image URL that produces an image with the largest dimension free to scale and the smallest dimension a minimum size. The temporary solution involves a call to info.json to compare the width and the height, followed by formulation of a URL that specifies the size of the smaller of (width | height) while allowing the other dimension to scale freely. Ideally, this would be possible with a direct IIIF Image API URL.