Skip to content

Image Helpers

respinos edited this page Apr 27, 2016 · 2 revisions

Overview

The image helpers take a result document and IIIF parameters as input.

At this point not all IIIF functionality is supported (specifically, the fun options).

Embedding Page Images

hathitrust_image(page) by default will generate an <img/> tag with a URL filled with any supplied options. With no options, the request will be for the full-sized image.

Image size can be adjusted with the size: parameter --- per IIIF specification:

  • size: '500,' - width of 500px
  • size: ',500' - height of 500px
  • size: '!500,500' - best fit in a 500x500px box

hathitrust_thumbnail(page) by default will generate an <img/> tag with a URL requesting an image with a height of 250px (size:',250').

Elements

Clone this wiki locally