Basic IIIF Image API Examples

One of the most basic examples of utilizing the IIIF Image API is to embed an image in a webpage using an <img> tag.

This example uses the Image API to request an image from a IIIF image server. If you select the "index.html" file you can see the URL that is being requested.

<img src="https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/1015,1460,799,824/pct:50/0/default.jpg">

This URL is crafted to extract a specific region, at a relative size, from the high quality original image. The original image is measured at 5426 x 3820 pixels and has a file size of 4.7MB. Having users download the entire file is inefficient and will likely provide a poor user experience. The IIIF Image API allows you to serve out derivative versions of these images in a standardized way, without having to generate derivates in advance.

Zoomable Images

Several different libraries now exist to use the IIIF Image API to provide a "deep zoom" for the images. Below is an example of the Leaflet-IIIF displaying the same image we looked at previously. Here you can see the entire image and zoom in with great detail. Using tiled zoom enables viewing of high resolution images without needing to download the full resolution images.

How does all of this work?

The IIIF Image API server knows how to efficiently deliver these images to the viewer client. The viewer client knows what types of images that it can request from the server. The client gets this information from the server through a Image Information request.

Let's dive into more of how the Image API works.

Last modified by Jeffrey C. Witt 2018-06-03 19:31:45
Created by Jack Reed 2018-05-18 07:47:36

results matching ""

    No results matching ""