Skip to content

Use case for minimum dimension as size constraint in future IIIF Image API version #1996

Open
@beaudet

Description

@beaudet

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions