digirati-co-uk / iiif-manifest-editor

Create new IIIF Manifests. Modify existing manifests. Tell stories with IIIF.
https://manifest-editor.digirati.services/
MIT License
33 stars 2 forks source link

Automatically create thumbnail #253

Open stephenwf opened 1 year ago

stephenwf commented 1 year ago

When a user add a painting annotation with a single image, we should have enough information to automatically generate a thumbnail.

We could either:

The first option would remove the options for customising the thumbnail, but would be out-of-mind for the user, with thumbnails appearing automatically. We can also have some simple detection for DLCS hosted to look for a /thumbs/ endpoint too.

The second option would be more of a rich experience, allowing the user to:

The second option could also be an editor to enhance the first option.

tomcrane commented 1 year ago

(see also https://github.com/digirati-co-uk/iiif-manifest-editor/issues/129)

stephenwf commented 1 year ago

Thinking about this more generally, it also overlaps with the "get thumbnail at size" logic in a way, although limited to just a single image resource.

Creating a list of "candidates" from an image + service, and then presenting these as a UI for the user to select from would be an end goal for an editing interface.

For now, we can simply look at the sizes.

tomcrane commented 1 year ago

For the DLCS-specific scenario, even if the Manifest Editor didn't know that there might be a matching /thumbs/ path (it wouldn't know if sitting behind a proxy like Wellcome for example, where the public path structure is simpler), just using the advertised sizes would be almost as efficient.