Overview

At first glance, the Juncture Image Viewer looks similar to the standard image support built into Jekyll and the Chirpy theme. It displays a clean, responsive image in the page, just like a normal Markdown image.

The difference becomes clear when the image is clicked.

When a reader clicks the page image, Juncture opens a larger viewer using the highest-resolution version available. This version supports smooth zooming and panning, allowing readers to explore fine detail. The image shown in the page itself is optimized for normal web viewing, so your page loads quickly and looks clean. The high-resolution version is only loaded when needed.

This makes the Juncture viewer ideal for:

  • Maps
  • Archival photographs
  • Works of art
  • Scientific or historical illustrations
  • Any image where detail matters

First-Class Support for Wikimedia Commons

The Juncture viewer makes using Wikimedia Commons especially convenient.

You can reference a Commons image either by:

  • Full Commons URL
  • The shorthand format: wc:File_Name.jpg

Juncture automatically:

  • Retrieves the optimal image size for the page
  • Loads the highest-resolution version for exploration
  • Pulls caption and attribution information from the Commons API
  • Displays proper credit and licensing automatically

This removes much of the friction normally involved in correctly using Commons images.

Interactive Storytelling

Where Juncture goes beyond a traditional image viewer is in interactivity.

You can link text to viewer actions such as:

  • zoomto — zoom to a specific region of the image
  • Display a label identifying the area of interest

This allows your writing to guide the reader visually. Instead of saying “look in the upper right corner,” you can make the image respond directly when the reader clicks a link.

The result is a more immersive reading experience — one where the image becomes part of the narrative rather than just an illustration.


In short:

  • Use the standard Chirpy image when you simply need to display a picture.
  • Use the Juncture Image Viewer when the image is something readers should explore.

Attributes

Required Attributes

You must provide either a src or manifest attribute to the image tag.


src

The src attribute define the image to display. You can use:

A local image

1
src="/assets/posts/my-post/photo.jpg"

A full web URL

1
src="https://example.org/image.jpg"

A Wikimedia shortcut

1
src="wc:File_Name.jpg"

manifest

The for the image manifest attribute a full URL to an IIIF manifest must b provided.

1
manifest="https://iiif.harvardartmuseums.org/manifests/object/299843"

Optional Attributes

These improve presentation but are not required.

aspect


Controls the image shape.

1
2
aspect="1200/630"
aspect="1"

You usually don’t need to change this unless you want a taller or more square presentation.


caption

Text displayed below the image.

1
caption="Monument Valley, UT"

Keep captions short and descriptive.


cover

Makes the image fill its space more dramatically, similar to a cover photo.

1
cover="true"

This works well for wide landscape images.


region

Starts the viewer zoomed into a specific area.

1
region="pct:10,20,30,40"

Most users won’t type this manually. You can use the viewer’s selection tool to generate region values.


rotate

Rotates the image.

1
rotate="90"

seq

Selects image in a multi-image IIIF manifest. By default, the first image in a manifest is displayed. If multiple images are defined in a manifest others can be referenced using the seq attribute. In this example the 2nd image in the manifest is displayed.

1
seq="3"

Examples

The Simplest Example

This creates an image that when clicked will open a dialog with an image at full resolution with zoom and pan features enabled.

1
2
3
{% include embed/image.html
    src="wc:Monument_Valley,_Utah,_USA.jpg"
%}

This uses a Wikimedia Commons image. When using a Commons image the caption, attribution statement and license (if needed) are automatically added.

Click on the image to open the interactive pan and zoom viewer on a high-resolution version of the image.


IIIF Example

In addition to displaying regular images, the image viewer can also display a IIIF image. The IIIF image is referenced using a manifest URL.

1
2
3
{% include embed/image.html
    manifest="https://iiif.harvardartmuseums.org/manifests/object/299843"
%}

An action link is a standard Markdown link where the URL is formatted with information needed trigger an action on the referenced item when clicked. To use an action link the image must include an id attribute so that it may be referenced in an action link. In tbe example below that zoomto action is triggered on the image with the img1 id.

1
2
3
4
{% include embed/image.html
    id="img1"
    src="wc:Monument_Valley,_Utah,_USA.jpg"
%}

Note the addition of the id attribute with the value img1.

1
[Merrick Butte](img1/zoomto/pct:67.68,34.23,23.22,27)

in this action link the first segment of the URL contains the id of the image to target in the action. The second segment (zoomto) is the action to perform. The third segment is the action argument, in this case the image region to zoom into.

Click this link to zoom in on Merrick Butte.

Note that the label for the zoomed region is taken from the action link text in this example. The next example shows how to define a custom label.

When the action link is clicked, the image viewer will zoom into the area defined and display a label. By default the text in the action link is used for the label. While this is convenient you may use other text by appending an attribute block to the link with a label attribute defined.

1
2
3
4
{% include embed/image.html
    id="img2"
    src="wc:Monument_Valley,_Utah,_USA.jpg"
%}

Note the addition of the id attribute with the value img1.

1
[Merrick Butte](img2/zoomto/pct:67.68,34.23,23.22,27){: label="Custom Label"}

In this action link the first segment of the URL contains the id of the image to target in the action. The second segment (zoomto) is the action to perform. The third segment is action argument, in this case the image region to zoom into. Click the link below to trigger the action.

zoomto action link with

Note that in this example the label for the zoomed region is taken from the custom attributes appended to the link.