Borrowed from: Displaying SVG attachments in Confluence
Confluence Server Access Required
This needs to be done by the Confluence administrator.
Steps
- Go to your Confluence server and find the directory where Confluence was installed
- Edit <confluence-install-directory>/
confluence/WEB-INF/classes/mime.types
- Add a line with image/svg+xml svg svgz
- Restart the Confluence application server
Result
When inserting a reference to an SVG image in the Confluence editor using Image Browser, the SVG image will now be displayed instead of a link to the image attachment.