Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Problem

SVG attachments are not displayed on Confluence pages.

Steps

Tip

Confluence server access required

This needs to be done by the Confluence administrator.

Steps

!

Ask your Confluence administrator to perform these steps.

  1. Go to your Confluence server and find the directory where Confluence was installed.

  2. Edit <confluence-install-directory>/confluence/WEB-INF/classes/mime.types .

  3. Add a line: image/svg+xml  svg svgz.

  4. Restart the Confluence application server.

Result

When inserting a reference to an SVG image in the Confluence editor using Image Browser, the SVG image is now displayed instead of a link to the image attachment.

...

Additional information

Trevan Householder has contributed a more recent experience on
Info
title

For Confluence 5.8.17:

However, adding that If adding the image/svg+xml  svg svgz line to mime.types did not do the trick for us. (yes, we restarted.)

We did, however, find this trick to make it work:

Upon work, on editing the Confluence page:

  1. Type

'
  1. !

'
  1. then, select the attached SVG.

  1. It renders the image inline.

  2. Adjust the image size as needed.