Skip to content

Instantly share code, notes, and snippets.

@rdmpage
Created September 10, 2026 20:03
Show Gist options
  • Select an option

  • Save rdmpage/42b139424fde0ea76f5aed203c596aa9 to your computer and use it in GitHub Desktop.

Select an option

Save rdmpage/42b139424fde0ea76f5aed203c596aa9 to your computer and use it in GitHub Desktop.
Minimal IIIF Presentation 3 manifest for Mirador issue #4533 - canvas coordinate space (3600px) differs from painted image pixel size (930px)
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://gist.githubusercontent.com/rdmpage/42b139424fde0ea76f5aed203c596aa9/raw/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Mirador #4533 - canvas vs image coordinate scale"
]
},
"items": [
{
"id": "https://example.org/canvas/p3",
"type": "Canvas",
"width": 3600,
"height": 4831,
"items": [
{
"id": "https://example.org/canvas/p3/ap1",
"type": "AnnotationPage",
"items": [
{
"id": "https://example.org/canvas/p3/ap1/a1",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://bhl-open-data.s3.us-east-2.amazonaws.com/web/Amphibianreptil9A/Amphibianreptil9A_0003_large.webp",
"type": "Image",
"width": 930,
"height": 1248,
"format": "image/webp"
},
"target": "https://example.org/canvas/p3"
}
]
}
],
"annotations": [
{
"id": "https://example.org/canvas/p3/comments",
"type": "AnnotationPage",
"items": [
{
"id": "https://example.org/canvas/p3/comments/a1",
"type": "Annotation",
"motivation": "commenting",
"body": {
"type": "TextualBody",
"value": "xywh=100,100,800,300 expressed in canvas units",
"format": "text/plain"
},
"target": "https://example.org/canvas/p3#xywh=100,100,800,300"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment