Adding an image element

This section describes the image template element, which can be used to display graphics in your report.

About this task

Note: IBM Engineering Lifecycle Optimization - Publishing (PUB) and Document Studio support different sets of image formats depending on the output format the template is generated into. Some images supported by the PUB Engine, such as .emf or .wmf, might not render correctly in the Document Studio Editor. These elements show as Image cannot be rendered.  To distinguish the elements that have an .emf or .wmf image attached, you are given this visual indication. Though you might see this message, Image cannot be rendered, in the Document Studio template editor, the output created with that template renders the image properly.


  1. In the Palette view, select an Image icon Image element and drag it into the template content editor.
  2. Right-click the image element and click Image > Load Image.
  3. Select an image from your computer or a remote location.
  4. Click OK. The image is inserted and a preview is visible in the template.
  5. Click the Save icon to save your changes.
  6. To add a hyperlink to an image, go to the Properties view. On the Specific tab, enter a link in the Hyperlink field.
  7. To add a clickable region to an image, go to the Properties view. On the Specific tab, click on Image map field. Enter an HTML snippet in Simple Value tab or assign a variable or attribute in Data Expression tab or JavaScript in Script Expression tab.
    For example:
    <area shape="rect" coords="0,0,82,126" href="" alt="Google link"/>  
    <area shape="circle" coords="90,58,3" href="" alt="IBM link"/>  

    For more information on usage of simple value, Data expression or Script Expression, see Setting how data is formatted and calculated.


By design, only the first line of content entered for elements that use the Content property display in the template content editor. Subsequent lines of text are hidden so that the template designer can focus on the structure of the template at a given time rather than the content of individual elements.