Svg image uploads always display in 250x200 size

Jonas Fagnastøl Henriksen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 24, 2024

When trying to import an svg-image (exported from draw.io), the image is always displayed in 250x200 pixels. I can change this size, but the aspect ratio remains the same (5:4). The image I currently want to display is much wider, and it looks ridiculous with the big white margins above and below the image. How can I avoid this? I have tried both Google chrome and MS Edge to rule out browser issues. I dont see othe complaints about this, so wonder if im doing something wrong? Any ideas?

1 answer

0 votes
Mike Rink -drawio Diagrams-
Atlassian Partner
July 25, 2024

Hi @Jonas Fagnastøl Henriksen , Confluence's handling of SVGs has been a problem before. If you search the Community there are a few threads, but here's a comment from an Atlassian team member that gets into it: https://community.atlassian.com/t5/Confluence-questions/Re-Confluence-does-not-retain-use-uploaded-SVG-images/qaq-p/1461246/comment-id/186621#M186621  

Jonas Fagnastøl Henriksen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 29, 2024

Thanks Mike, 
I believe handling of SVG images has been improved, so now when I upload an image, it is the actual SVG image that is displayed. I can also click the image and download the SVG, which is sort of what I'm looking for, so it is easy to update technical images without just doing some ugly hack in a raster image. So it really is the display of the image that I would like to have improved. so it is possible to see the drawing when reading a confluence file, without hving to click the image to get it in full size. 

John Rood
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 30, 2024

Thanks @Mike Rink -drawio Diagrams-.  The aspect ratio issue that @Jonas Fagnastøl Henriksen is asking about here doesn't seem to be addressed in the thread linked. It is a separate issue. The bug here is that Confluence locks SVGs to a 5:4 aspect ratio, rather than using the actual ratio from the width and height of the SVG. Is there a way to report this bug?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events