Image dimensions
TomDeneire opened this issue · 2 comments
Hi Johannes,
what a fantastic tool! Congrats on a great idea and excellent execution.
One thing I noticed is that in the PDF download the image dimensions seem warped. At least for one of our manifests (https://anet.be/iiif/4de3efcf34bc21682b4a82d35fe32b5facfaf0e5/manifest) the PDF looks rather different than when it is viewed in our viewer (https://anet.be/brocade/imageviewer/universalviewer/uv.html#?manifest=/iiif/4de3efcf34bc21682b4a82d35fe32b5facfaf0e5/manifest&config=/iiif/viewercfg.phtml%3Fcg=uauniversalviewer).
The canvases in your manifest specify the wrong size if you want them to display the way you intend to:
Canvas (irrelevant keys omitted):
{
"id": "https://anet.be/iiif/4de3efcf34bc21682b4a82d35fe32b5facfaf0e5/canvasbase/00000002",
"width": 400
"height": 600
}
The image that you are painting onto this canvas has a width of 4033 pixels and a height of 2624 pixels.
If you don't specify an explicit position and size on the canvas for a painting annotation with a selector, it will be scaled to fill the whole canvas, as mandated by the specification:
Renderers must scale content into the space represented by the Canvas
https://iiif.io/api/presentation/3.0/#53-canvas
Thanks for the clarification, we will look into rectifying this!