Skip to content

Instantly share code, notes, and snippets.

@saracarl
Created December 8, 2018 20:59
Show Gist options
  • Save saracarl/0e60d0f45ff82a79503ad330ba045034 to your computer and use it in GitHub Desktop.
Save saracarl/0e60d0f45ff82a79503ad330ba045034 to your computer and use it in GitHub Desktop.
Steps used to combine 2 National Archive of Norway Manuscript Fragments
View the manifest:
https://betaiiif.arkivverket.no/manifest.json
and pull the 2 images we want to combine out of it:
https://betaiiif.arkivverket.no/iiif/2/6fbac983-20d0-4eda-bb2d-197c08db3147/full/full/0/default.jpg
https://betaiiif.arkivverket.no/iiif/2/3b19494b-b65d-4f73-ba73-260d40ec3ca0/full/full/0/default.jpg
Crop the images using UCD's crop tool to get just the manuscript part of the images:
https://betaiiif.arkivverket.no/iiif/2/6fbac983-20d0-4eda-bb2d-197c08db3147//159,146,1223,1668/full/0/default.jpg
https://betaiiif.arkivverket.no/iiif/2/3b19494b-b65d-4f73-ba73-260d40ec3ca0/109,119,1309,1644/full/0/default.jpg
Comput the width of the canvas by adding the two crop widths together:
1223 + 1309 = 2532
Compute the height of the canvas by taking the max of the two crop heights:
max(1668,1644)=1668
Start with a simple manifest file -- I used this one:
https://preview.iiif.io/api/image-prezi-rc2/api/cookbook/mvm-image/#implementation-notes
Edit the canvas size to 2532x1668
Change the image to our first image
Result:
In UV:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment