Skip to content

Instantly share code, notes, and snippets.

@jbaiter
Forked from mejackreed/manifest.json
Last active December 9, 2020 09:15
Show Gist options
  • Save jbaiter/8d4889654d87ef400bd6dcef353cdd8f to your computer and use it in GitHub Desktop.
Save jbaiter/8d4889654d87ef400bd6dcef353cdd8f to your computer and use it in GitHub Desktop.
contrived manifest dimensions
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://gist.githubusercontent.com/mejackreed/f3bfa11f23da086abb0baf8605b9c075/raw/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Simple Manifest - Book"
]
},
"behavior": [
"paged"
],
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p1",
"type": "Canvas",
"label": {
"en": [
"Blank page"
]
},
"height": 4613,
"width": 3204,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/page/p1/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/annotation/p0001-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f18/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"height": 4613,
"width": 3204,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f18",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p1"
}
]
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p2",
"type": "Canvas",
"label": {
"en": [
"Frontispiece"
]
},
"width": 3186,
"height": 4612,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/page/p2/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/annotation/p0002-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f19/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3186,
"height": 4612,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f19",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p2"
}
]
}
],
"annotations": [
{
"id": "localStorage://?canvasId=https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p2",
"items": [
{
"body": {
"type": "TextualBody",
"value": "<p>eye</p>"
},
"id": "6ef0f568-8744-40a0-8bf8-89bf2346d302",
"motivation": "commenting",
"target": {
"source": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p2",
"selector": [
{
"type": "FragmentSelector",
"value": "xywh=1729,814,43,45"
}
]
},
"type": "Annotation"
}
],
"type": "AnnotationPage"
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p3",
"type": "Canvas",
"label": {
"en": [
"Title page"
]
},
"width": 1602,
"height": 2307,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/page/p3/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/annotation/p0003-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f20/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3204,
"height": 4613,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f20",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p3"
}
]
}
],
"annotations": [
{
"id": "localStorage://?canvasId=https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p3",
"items": [
{
"body": {
"type": "TextualBody",
"value": "<p>Georges</p>"
},
"id": "e9855fea-bc28-470c-892d-a454a9237c2a",
"motivation": "commenting",
"target": {
"source": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p3",
"selector": [
{
"type": "FragmentSelector",
"value": "xywh=362,927,260,42"
}
]
},
"type": "Annotation"
}
],
"type": "AnnotationPage"
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p5",
"type": "Canvas",
"label": {
"en": [
"Frontispiece"
]
},
"width": 4779,
"height": 6918,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/page/p5/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/annotation/p0005-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f19/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3186,
"height": 4612,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f19",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p5"
}
]
}
],
"annotations": [
{
"id": "localStorage://?canvasId=https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p5",
"items": [
{
"body": {
"type": "TextualBody",
"value": "<p>eye</p>"
},
"id": "6ef0f568-8744-40a0-8bf8-89bf2346d302",
"motivation": "commenting",
"target": {
"source": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p5",
"selector": [
{
"type": "FragmentSelector",
"value": "xywh=2594,1221,65,68"
}
]
},
"type": "Annotation"
}
],
"type": "AnnotationPage"
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p4",
"type": "Canvas",
"label": {
"en": [
"Title page"
]
},
"width": 3204,
"height": 4613,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/page/p4/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/annotation/p0004-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f20/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3204,
"height": 4613,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f20",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p4"
}
]
}
],
"annotations": [
{
"id": "localStorage://?canvasId=https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p4",
"items": [
{
"body": {
"type": "TextualBody",
"value": "<p>Georges</p>"
},
"id": "e9855fea-bc28-470c-892d-a454a9237c2a",
"motivation": "commenting",
"target": {
"source": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p4",
"selector": [
{
"type": "FragmentSelector",
"value": "xywh=724,1853,519,81"
}
]
},
"type": "Annotation"
}
],
"type": "AnnotationPage"
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p6",
"type": "Canvas",
"label": {
"en": [
"Blank page"
]
},
"width": 3174,
"height": 4578,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/page/p6/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/annotation/p0006-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f21/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3174,
"height": 4578,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f21",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p6"
}
]
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p7",
"type": "Canvas",
"label": {
"en": [
"Bookplate"
]
},
"width": 3198,
"height": 4632,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/page/p7/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0009-book-1/annotation/p0007-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f22/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3198,
"height": 4632,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f22",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0009-book-1/canvas/p7"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment