iiif-prezi / iiif-prezi3

IIIF Presentation API 3 Python Library
https://iiif-prezi.github.io/iiif-prezi3/
Apache License 2.0
27 stars 14 forks source link

Expand behaviour of `create_canvas_from_iiif` to allow setting the properties used in the ID #148

Open digitaldogsbody opened 1 year ago

digitaldogsbody commented 1 year ago

Per @giacomomarchioro's suggestion in: https://github.com/iiif-prezi/iiif-prezi3/pull/139#pullrequestreview-1213445322

shall we provide the ability to set the format and the id of the body as args of the function, in case I want to show lower resolution or rotated images in the create_canvas_from_iiif?

I think this could be a useful thing to add, possibly as simple as adding the parameters of an Image API URL to the function with the defaults that are currently used in the explicit string version (although some thought needed for how this would handle the full->max change between v2 and v3).

glenrobson commented 1 year ago

Pass in region, size, rotation and format default to full/full and full/max.

Thank about what to do with file extension and corresponding mimetype in format.

Defer until we have a use case.