I am using Confluence 6.8.1. We have edited the mime.types files and restarted the Confluence server as described here:
I can insert an SVG image into a page and have it display correctly as long as I set the size greater than 300px. But when I click on the image to bring up the previewer, no image is displayed. The previewer opens, but it just shows a blank gray screen like this:
I need to be able to display many small thumbnails on a page and have the user able to click on them to zoom in. Why does this not work with SVG?
Apparently this was a problem with my specific SVG file that had the dimensions specified in percentages:
<svg width="100%" height="100%" ...
This is valid SVG and handled just fine by the browser, but the image previewer doesn't like it. Modifying the SVG file to specify the width and height in pixels makes it display properly.
Hi @Dan Huber ,
Here is an example using User Macro, the template one (nothing fancy):
Hello, <font color="$paramColour">$paramName</font>!
<span class="confluence-embedded-file-wrapper conf-macro output-inline"
(i) Please, notice the code above was formatted in such a way for readability reasons. Therefore, it should formatted appropriately.
The SVG in used in this example (410.svg) has been downloaded from https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/
As a result, I have:
Then you could extend the User Macro to get a list of attachments (SVG) in which you want to display in your page.
Hope the above helps.
Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events