NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{scrollbar:icons=false}

...

This page includes the following:

Table of Contents
minlevel2

...

To insert an image using the Confluence editor:

...

  1. In the page

...

  1. you want to change, click Edit
  2. At the place on the page where you want

...

  1. the image

...

  1. to appear, press <Ctrl+M>. The Insert files and images dialog box appears. 

  2. Select the image to insert. There is an upload files function so that you can attach images to the current page. There is also a search function to find images on other Confluence pages
  3. Click Insert. The image appears on the page, with a row of buttons (the image properties panel). 
  4. Complete the image properties.
    • Add alt text for the

...

How to insert an image using wiki markup

Confluence supports several HTML image attributes. Some can be inserted in the XHTML after an image is inserted using the Confluence editor. These attributes may also be used by inserting the image using wiki markup. The steps are

  • From the Insert options, select Wiki Markup.
  • In the editing window, enter the wiki markup.
  • Select Insert.

Examples are shown, followed by a list of HTML image attributes supported in Confluence.

Action

Markup

Displayed Image

Display an image flush right with a black border

Code Block
!nciplogo_40p.jpg|align=right,border=2,bordercolor=black,alt="NCIP logo"!

NCIP logoImage Removed

Display an image attached to a page in another wiki space, centered
Code Block
!EVS:EVS Wiki^EVSTiny80.jpg|align=center,alt="EVS logo"!

EVS logoImage Removed

Display an image attached to another page in the same wiki space
Code Block
!Wiki FAQs, Tips and Guidelines^nciplogo_40p.jpg|alt="NCIP logo"!

NCIP logoImage Removed

Info
titleHTML image attributes supported in Confluence
 
  • align — 'left', 'right', 'bottom', 'center', 'top'.
  • border — width of the border (in pixels).
  • bordercolor — specify the color of the image border created with the "border" tab by name or by hex value.
  • hspace — amount of whitespace to be inserted to the left and right of the image (in pixels).
  • vspace — amount of whitespace to be inserted above and below the image (in pixels).
  • width — width of the image (in pixels). Supersedes natural width of the image.
  • height — height of the image (in pixels). Supersedes the natural height of the image.
  • title — descriptive text for the image, which is displayed when the pointer hovers over the image
  • alt — alternative text (required), which is included in the HTML code. This text is retrievable via search, and contributes to accessibility of the page for text-only viewing.

How to resize an image

Typically when the browser is full-screen, images up to 13 inches wide are displayed without causing the horizontal scroll bar to appear. Wider images make scrolling necessary and may cause the page to be displayed improperly so that lines no longer wrap.

You can attach images at any size and change the display size in Confluence. Thus, you can use the original image capture which provides the best resolution with the least loss of data. Try specifying the width only, in even increments calculated based on 72 pixels per inch:

Image Width in Inches = 13, Width in Pixels = 936
Image Width in Inches = 12, Width in Pixels = 864
Image Width in Inches = 11, Width in Pixels = 792
Image Width in Inches = 10, Width in Pixels = 720
Image Width in Inches = 9, Width in Pixels = 648
Image Width in Inches = 8, Width in Pixels = 576

You can also use the buttons to resize in the image properties panel.

...

titleTip

...

We attached an example image to this page and inserted it below, as explained in the preceding steps.

NCIP logoImage Added

Also refer to the following Atlassian help page:

Show If
groupGP-CFW_ADMINS

7.3

Display Files and Images

Multiexcerpt include
MultiExcerptNameExitDisclaimer
nopaneltrue
PageWithExcerptwikicontent:Exit Disclaimer to Include