IIIF / cookbook-recipes

For working on the recipes
https://iiif.io/api/cookbook/index.html
37 stars 31 forks source link

Image different size to canvas #4

Closed tomcrane closed 3 years ago

tomcrane commented 5 years ago

Image different size to canvas

https://github.com/IIIF/cookbook-recipes/blob/master/cookbook/0004-canvas-size/index.md

Use case

(e.g.,) You have a very small image that you hope to later replace by a higher resolution image.
Pedagogy: demonstrate the difference between canvas coordinate space and content dimensions.

tomcrane commented 5 years ago

Equivalent to 2.1 fixture:

https://iiif.io/api/presentation/2.1/example/fixtures/26/manifest.json

azaroth42 commented 4 years ago

Intent: Stretch or squash to fit the image into the canvas space.

rsinghal commented 4 years ago

https://github.com/IIIF/cookbook-recipes/blob/master/recipe/0004-canvas-size/index.md - correct link

sredick commented 4 years ago

several items that used to have masters but then they were lost; now they only have jpgs. they ingest the jpgs, then tell the studio to take more masters, but in the meantime they live with jpgs

saracarl commented 4 years ago

We have several items that used to have masters, but not we only have JPEGs. We have an annotation project, we ingest the JPEGs and then have our digitization lab reimage them and we replace them later, after annotation has already happened.

saracarl commented 4 years ago

Possible title: "An image and a canvas do not have to match in size" or "Display any sized image on a canvas"

We think this recipe does not clearly convey the concept it's trying to convey, which is " image & canvas don't have to match" An image will fill the canvas it's on, otherwise use Fragment selector.

This could also be a supplement to recipe #1.

tomcrane commented 4 years ago

Agree that should be linked from recipe #1.

Although this is probably quite a rare use case, it's the simplest demonstration of the Canvas abstraction. For a developer building a client, it's important to understand the Canvas as early possible, that content is being placed onto a Canvas, and that the dimensions of the Canvas are not measured in pixels. So this recipe has a teaching purpose.

If you don't start with this understanding, you make it harder for yourself as soon as you have more than one image on the Canvas, or want to display text on the Canvas, etc.

jrgriffiniii commented 4 years ago

The recipe has been moved to https://github.com/IIIF/cookbook-recipes/blob/master/recipe/0004-canvas-size/index.md