How big is that image? Finding the pixel dimensions of DRS-stored images.

Harvard Library’s new page-turner accesses DRS-stored images, and technical metadata about the images, via the International Image Interoperability Framework API.

Once you know the IIIF recipe, you can also use the API to quickly find information about images in DRS. [ I wish the API would return the image sampling rate (aka, dpi), but that nugget isn’t part of the IIIF specification. Don’t get me started. ]

You can, however,  get the pixel dimensions of images stored in DRS, quick and easy.

Here are two recipes:

  • Referencing a DRS image ID
     http://ids.lib.harvard.edu/ids/iiif/<DRS ID>/info.json
  • Referencing a VIA record ID
     http://ids.lib.harvard.edu/ids/iiif/via:<VIA record ID>

Example: http://ids.lib.harvard.edu/ids/iiif/11869105/info.json
Example: http://iiif.lib.harvard.edu/manifests/via:olvwork279002

This entry was posted in General Interest. Bookmark the permalink.