Too much text makes for a dull read. Spice up your pages by adding some multimedia...
Overview
The days of text-only websites are long gone. These days it's not enough to simply place page after page of text on your site, you've got to make it look nice and find more concise ways of delivering information. That's where multimedia comes in!
Multimedia comes in all shapes and sizes (and sounds!) and can be stored both on your own site or elsewhere on the Internet. This tutorial shows how to include various forms of multimedia, taken from various locations on the Internet.
Choosing a Location
As we've mentioned above, media can be pulled in from a wide range of locations. In order to not repeat ourselves in the following sections, we'll take a brief look at the various locations for storing media files and how to use them within your content.
Page / News Attachments
All Pages and news items within your site have an "Attachments" feature. You can even add attachments to your User Profile, for example a picture of yourself.
To display an attachment from the current page, etc., simply put it's file name in exclamation marks:
!toddler.png!
Which results in:

Attachments Elsewhere
If you want to use an attachment for another page or news item1 , specify the page name followed by a caret ("^") and then the attachment name as shown in the example below:
!gallery macro^violin.jpg!
This will take the file called "violin.jpg" from the "gallery macro" page within the same space as the page containing the link:

If you want to use an attachment in a different space, you need to include both the Space "Key" and the page title (or news link, etc) as shown in the example below:
!ADAPTAVIST:Home^cubes.png!
Remember that when you are using attachments from elsewhere, the person viewing your page must also have access to view the location where the attachment is stored.
Missing Files
If the file you try to display is not found (either it doesn't exist, or you've mistyped the filename, etc) then you'll get something like this:
Unable to render embedded object: File (non-existant.file) not found.
Files from Other Servers
To display an image from a different server2 , specify the full URL as shown in the example below:
!http://adaptavist.com/adaptavist.gif!
Note: For security reasons, some media formats cannot be used if they are on remote servers as shown in the "Remote" column in the table below.
| Ref | Notes |
|---|---|
| 1 | Before pulling attachments from other locations, please read our tutorial on Linking to Attachments for guidance. |
| 2 | Make sure you get permission from the owner of the server first. |
Media Formats
You can display several formats of image:
| Format | Media | File Extension(s) | Notes | Remote |
|---|---|---|---|---|
| Joint Picture Expert Group (JPEG) | Pictures | .jpg .jpeg .jpe | A very popular file format for displaying photographs or other images with lots of complex detail and colours. | |
| Grpahics Interchange Format (GIF) | Graphics and Animations | .gif | A very popular file format for displaying images with 256 colours or less. GIF images are best used for pictures that contain large areas of the same colour such as charts, etc. GIF files can also contain transparent regions (so you don't get ugly white edges on a darker background, etc) and simple animations. | |
| Portable Network Graphic (PNG) | Pictures and Graphics | .png | This is a more modern equivalent of GIF images, however it doesn't support animations. The biggest benefits of PNG files are that they can contain millions of colours and they can have variable transparency3 . | |
| Windows Bitmap (BMP) | Pictures and Graphics | .bmp | This file format is normally only supported on computres running the Windows Operating System. We strongly advise against using this media format because the files are usually HUGE and will take a long time to download. | |
| QuickTime | Pictures, Graphics, Animations, Audio, Video | .mov | A very flexible format that can contain multiple types of media. Microsoft Windows users will usually have to download a plugin to view this type of media. | |
| Windows Media | Audio, Video | .wma, .wmv | This format is most commonly used for audio and video files. Microsoft Windows users may need to upgrade to a more recent version of Windows Media depending on the type of file being played. | |
| Real Media | Audio, Video, Animations | .ram .rm | Users will have to download the Real Player (or similar) to view this type of media. | |
| MP3 | Audio | .mp3 | MP3 is by far the most popular media format for music and is also widely used for recorded speech. | |
| Flash | Pictures, Graphics, Animations, Audio, Video, Games, etc. | .swf | Flash is by far the most widely supported rich media format across different operating systems and web browsers. It can display everything from simple text to interactive content and even games4 . The flash player is installed on most computers, but if a newer version is required it will usually automatically download and install itself. |
| Ref | Notes |
|---|---|
| 3 | Microsoft Internet Explorer, prior to version 7, has trouble with the transparent regions in PNG files. However, if you are using the Builder theme the transparency will work in all versions of Internet Explorer from version 5.5 upwards. |
| 4 | See the sudoku-flash macro for an example of a game. |
Media Formatting Options
There are various formatting options, dependant on the type of media you are using.
To specify a single option, such as setting the alignment for an image, use the following notation:
!toddler.png|align=right!
If you want to specify several options, separate them with commas as shown below:
!toddler.png|thumbnail,align=right,vspace=4px!
Click on the links below for more details on options for specific media formats:
- Image Options — This tutorial covers the various additional options that can be used when displaying JPEG, GIF and PNG files...
- Images
.png)








Comments (12)
Jan 16, 2007
Anonymous says:
Are there any setting for ALT and TITLE Tags for images?Are there any setting for ALT and TITLE Tags for images?
Aug 26, 2008
Judy Payne says:
A couple of questions about multimedia files. Do the (x)s in the media format...A couple of questions about multimedia files.
Thanks.
Aug 26, 2008
Guy Fraser says:
1. The docu is a bit out of date - most of those formats can now be embedded fro...1. The docu is a bit out of date - most of those formats can now be embedded from remote locations, however browser and firewall settings will still sometimes prevent their use (refer to organisational IT department should that happen).
2. Not at present. You'd have to raise a feature request with Atlassian.
Aug 26, 2008
Judy Payne says:
Great, thanks - I'll remove the 'noformats' from the video embed code! And raise...Great, thanks - I'll remove the 'noformats' from the video embed code! And raise the audio file issue with Atlassian.
Feb 20, 2009
vmanuja says:
Using: Adaptavist Theme Builder (3.3.2-conf2.10) There are few different ways ...Using: Adaptavist Theme Builder (3.3.2-conf2.10)
There are few different ways I've been trying to embed media on my pages.
1 on Confluence Server: !http://<fully qualified server name>/<dir>/media.wmv! (ends up showing an missing image icon) 2 using viewfile: {viewfile:http://<fully qualified server name>/<dir>/media.wmv} (ends up with message - viewfile is unable to locate attachment...) 3. using viewfile on a remote/ share fileserver: {viewfile:url=//<server address>/media.wmv} (ends up with message - no attachment name specified) 4. using file attribute: !file://<server address/media.wmv! (ends up linking to the file and plays in windows media player outside of the browser)Please advise as I am trying to embed the media however can't put them as attachment because of large file size
Oct 16, 2008
Judy Payne says:
Is there a way of embedding videos from another site (such as YouTube) without e...Is there a way of embedding videos from another site (such as YouTube) without enabling the html macro and pasting in code?
Thanks.
Feb 12, 2009
Guillermo Chutrau says:
I have been having trouble displaying !xxxx.swf! I only get a blank space...I have been having trouble displaying
I only get a blank space
And
{viewfile:xxxx.ppt} or {viewfile:xxxx.pdf}I get
I recently installed Adobe Flash Player v10 , and thought that could be the cause, by I reverted to v9, and could not solve the problem.
Have you heard any problems like these?
Thanks.
Feb 12, 2009
Guy Fraser says:
Which version of Confluence are you using? More recent versions of Confluence re...Which version of Confluence are you using? More recent versions of Confluence resolve some issues with displaying flash files (also, the .swf file should be attached to the same page when using that syntax). You'll need Confluence 2.9 + Office Connector (or Confluence 2.10.1 which includes Office Connector as standard IIRC) to view the PDF or other documents inline.
Feb 13, 2009
Guillermo Chutrau says:
We have updated recently to Confluence 2.10, we had Office Connector before. Th...We have updated recently to Confluence 2.10, we had Office Connector before.
The .swf files are attached to the same page that is displaying them, and used to work fine before.
For now, the only thing that I can suspect is the new Flash player, but I haven't been able to do more testing or investigate.
I'm a mere mortal... an end user
Maybe we will have to reboot the server.
Thanks for the leads.
Feb 20, 2009
Guillermo Chutrau says:
Our admin reset the Confluence app, and the problem is fixed.Our admin reset the Confluence app, and the problem is fixed.
Feb 13, 2009
Jacob E Cox says:
I attached a .swf image to a page and used it as a header. When I view th update...I attached a .swf image to a page and used it as a header. When I view th updated page the image is about a 10th of its normal size. We are using Confluence 2.7.3. The actual dimensions of the image are 12 in. x 2.5 in. Is this a known issue and if so, what is the workaround?
Apr 13, 2009
Rodolfo R. Rosales says:
Jacob, I was having the same problem. everytime the page was edited, I neeeded...Jacob,
I was having the same problem. everytime the page was edited, I neeeded to go into rich text to click and drag the .swf to a certian size. dirty, but worked for me!!!
Rudy