Linking to JPEG2000 Images in the DRS
This document describes the options for creating links to JPEG2000 images stored in the HUL Digital Repository. This document is intended for Harvard curators and collection managers who need to add JPEG2000 image links to a catalog or special collection web site.
From a single JPEG2000 image in DRS storage, the Image Delivery Service can deliver static JPEG images on-the-fly in a variety of resolution sizes. Or, it can deliver a JPEG within an interactive web-based viewer that lets the user zoom, pan and rotate the image.
If you have a question about delivery of JPEG2000 images, send a message to . If you are reporting a problem, please include in your report a description of the problem, any error message you see, and the image's url.
Which link to use
Linking to a static image
Linking to the interactive viewer
List of all JPEG2000 parameters
Which link to use
When adding a DRS image link to a catalog or web site, it is always best practice to use the persistent identifier (URN) link rather than the native Image Delivery Service (IDS) link.
Native IDS link: http://ids.lib.harvard.edu/ids/view/839567
URN link: http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sampleTo use the JPEG2000 link options described in this document, you can append them to the native IDS link that is associated with a NRS persistent identifier, or append them directly to the URN link. Examples in this document show options appended to the URN link.
Linking to a static image
A 5025 x 3245 JPEG2000 image is deposited in the digital repository with the persistent identifier (URN) urn-3:HUL.OIS:jp2-sample. This URN, with no additional parameters, will resolve to a medium-sized JPEG:
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample
By adding width and height parameters to the URN, you can control the dimensions of the static JPEG image. The table below illustrates this method:
Dimensions
Estimated size
URL
1257 x 812
355 kb
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?width=1257&height=812
629 x 406
107 kb
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample (default)
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?width=629&height=406315 x 203
31 kb
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?width=315&height=203
158 x 102
9 kb
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?width=158&height=102
Linking to the interactive viewer
To create a link that will deliver a JPEG image within a web-based interactive viewer, add the buttons=y parameter to the end of the persistent identifier. To include a text caption, add the caption parameter.
Option
URL
Interactive view
Interactive view with a caption
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?buttons=y&caption=Hello+There
List of all JPEG2000 parameters
Below is a list of all JPEG2000 URL parameters available with the Image Delivery Service (IDS). Note the value in the View Type column, which indicates when a parameter is available with the interactive view, the static view, or both.
Parameter
Description
View Type
Example Use
buttons
The buttons parameter with any value enables interactive image presentation. A value of
buttons=tputs the controls at the top;buttons=l,buttons=y, or any other value puts them at the left. Omitting the parameter displays the image without controlsInteractive
viewheight
The maximum height of the image pane in the interactive view. Values less than the implementation minimum (currently 50) will be interpreted as the minimum; values greater than the implementation maximum (currently 2400) are interpreted as the maximum. The default height is 600. This affects only the initial height; the user can change the size of the image pane.
Interactive
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?buttons=y&viewwidth=158&viewheight=102
viewwidth
The maximum width of the image pane in the interactive view. Values less than the implementation minimum (currently 50) will be interpreted as the minimum; values greater than the implementation maximum (currently 2400) are interpreted as the maximum. The default width is 800. This affects only the initial width; the user can change the size of the image pane.
Interactive
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?buttons=y&viewwidth=158&viewheight=102
caption
The value of the parameter will be displayed as text above the image in the interactive view.
Interactive
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?buttons=y&caption=sample+caption
rotation
This specifies the initial rotation of the image in the interactive view as well as the static view. The value must be 0, 90, 180, or 270.
Interactive and Static
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?buttons=y&rotation=90&viewwidth=158&viewheight=102
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?rotation=90&width=500&height=500
height
The maximum display height in the non-interactive view. Values less than the implementation minimum (currently 50) will be interpreted as the minimum; values greater than the implementation maximum (currently 2400) are interpreted as the maximum. The minimum is defined to avoid implementation problems with scaling to very small pixel dimensions; the maximum is based on policy. The default height is 768. The image will be displayed at the largest size within the height and width constraints while preserving the aspect ratio.
Static
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?width=315&height=203
width
The maximum display width in the static view. Values less than the implementation minimum (currently 50) will be interpreted as the minimum; values greater than the implementation maximum (currently 2400) are interpreted as the maximum. The default width is 1024.
Static
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?width=315&height=203
html
This parameter is new with this version of IDS. It applies only to the static view of JPEG2000 images. If this parameter has any non-empty value, such an image is presented as an HTML document containing only the image. If
htmlis empty or absent, then the image is presented as a JPEG document.Static
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?width=500&height=500&html=yes
s
Specifies zoom level. Acceptable values are anywhere between 0.1 and 4 (depending on the maximum image size) with 1=100% zoom level. This parameter works only in static view. The
widthand height parameters have to be present in conjunction with the s parameter in order for IDS to display the image correctly. Thesparameter will also work in conjunction withwidth, height, xandyparameters. If at the specified zoom level the total size of the image is bigger than specified width and height, a slice of the image will be delivered (starting with top pixel and down to the specified width and height for the image). Ifxandyare used in conjunction with width and height then the same scenario will be true except that the view will start with a top pixel offset byxandynumbers of pixels.Static
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?width=1000&height=1000&s=1
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?width=1000&height=1000&x=300&y=300&s=0.125
x
The offset x coordinate of the upper left corner of an image region. The
widthandheightparameters have to be present in conjunction with thexandyparameters in order for IDS to display the image correctlyStatic
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?width=1000&height=1000&x=300&y=300
y
The offset y coordinate of the upper left corner of an image region. The width and height parameters have to be present in conjunction with the x and y parameters in order for IDS to display the image correctly
Static
http://nrs.harvard.edu/urn-3:HUL.OIS:jp2-sample?width=1000&height=1000&x=300&y=300
sys
Specifies the invoking discovery application. This is a parameter for internal OIS use. It works in conjunction with OIS supported discovery systems.
Interactive (internal OIS use)
|
Last modified: Tuesday, 04-Sep-2007 08:28:12 EDT © 2007 President and Fellows of Harvard College http://hul.harvard.edu/ois/systems/ids/idslinking/ |
Harvard University Library Image Delivery Service For assistance contact: |