Description: Hello, I’m experiencing problems when opening SVG files in Draw. My file SVG file was converted and exported by Drawio from an original Visio file. When I open it in Draw, I get the following message: “Viewer does not support full SVG 1.1”. I’ve detected the following problems in LO 6.4.3 and 7.0 alpha 1 for Windows 10: 1. The imported object doesn't look like my diagram. 2. It’s imported as an image, which means that I can't select any of its elements. Steps to Reproduce: 1. I open the SVG file in Draw. Actual Results: 1. The imported object doesn't look like my diagram. 2. It’s imported as an image, which means that I can't select any of its elements. Expected Results: 1. The design of my diagram is preserved. 2. I can select every element of my diagram. Reproducible: Always User Profile Reset: No OpenGL enabled: Yes Additional Info: I used LO 6.4.3 and 7.0 alpha 1 for Windows 10.
Created attachment 160792 [details] Original Visio file and SVG file
It's ok on Version: 6.4.3.2 Build ID: 747b5d0ebf89f41c860ec2a39efd7cb15b54f2d8 CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US Calc: threaded
also is ok on Version: 7.0.0.0.alpha1 Build ID: 6a03b2a54143a9bc0c6d4c7f1... CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded
Created attachment 160927 [details] see the image see the image
And also I can move any shape form there anywhere.
You could try a reset user profile: Open LibreOffice - Help - Restart in Sfae MOde - Restart - Factorry reset. Maybe everything is now ok.
Hi, @BogdanB, Thank you for your feedback. 1. I've clicked on Restart in Safe Mode, and then on Restart with Default Settings (with both suboptions enabled). Is this the factory reset you mentioned? I had never tried this feature before. Unfortunately, my problems with my SVG file are still there. 2. Since you're using Linux, I thought it was a problem affecting only the Windows version of LO, but I've checked on a different computer running Windows 10 and LO 6.4.3.2 and everything's OK there. On my computer, I've disabled OpenGL and hardware acceleration as a last resort, but I get the same issue. I have no idea why my SVG file isn't rendered properly on my computer, a problem that I also have on 7.0.0 alpha 1. Maybe another piece of software is causing a conflict on my laptop. Is there anything else I could try? It's not a big deal to me, as I'll be formatting my computer soon and hopefully things will be back to normal.
I've just uninstalled LO (with Revo Uninstaller just to make sure), restarted my PC and installed LO 6.4.3.2 again, but I get the same issues with my SVG file. I'm out of ideas. I wonder if I'm the only one facing this problem.
I reproduce the issue Version: 7.0.0.0.alpha1+ (x64) Build ID: f9790da286f2d2fa47f1748f8cfa6172c6622ca3 CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win; Locale: de-CH (nl_NL); UI: en-US Calc: CL Including: “Viewer does not support full SVG 1.1”.
Created attachment 160940 [details] Screenshot
Created attachment 160942 [details] My screenshot Here's my screenshot. You can see that my SVG is rendered incorrectly, but in different way.
Now that I look again at both screenshots, the rendering problems are the same. It's just that my page is landscape.
Created attachment 160952 [details] video of the bug I am not sure of the steps I need to do to repeat the bug. Please see the video and confirm if you see the bug. Version: 6.4.3.2 Build ID: 747b5d0ebf89f41c860ec2a39efd7cb15b54f2d8 CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US Calc: CL
Hi, @BogdanB, Thank you for testing the issue. 1. In your screenshot, the SVG file is rendered correctly. 2. In your video, the SVG is not rendered correctly. If you compare the screenshot and the video, you'll notice the difference. When I send this comment, I'll upload my screenshot of the correct rendering, obtained by opening not the SVG file, but the original Visio file. 3. About my steps, I just click, in Draw, on File > Open, but if I click on Insert > Page, as you did, I still have the same issue. 4. I need to make a correction. I said above that, on my dad's computer, my SVG file was rendered correctly, but I was wrong. By mistake, I opened the Visio file, instead of the VSG file. Therefore, the issues are the same on both computers. 5. This makes me wonder: when you made the screenshot (not the video), are you sure you opened the SVG file and not the Visio file?
Created attachment 160956 [details] Correct rendering of the SVG File This is a screenshot to show how the SVG file should be rendered. It was obtained by opening the original Visio file on LibreOffice.
Created attachment 160957 [details] video See video with your files opened on my computer
Created attachment 160958 [details] video3 inserting the SVG
@BogdanB, in your second video, you opened the original Visio file: it's rendered correctly, as it's rendered correctly on my computer. My issue only concerns the SVG file. I noticed that, when you previewed the SVG file, it wasn't rendered correctly, so maybe when Drawio converts Visio files into SVG files, it produces bad files. Actually, I've just opened my SVG file in Inkscape and it's not rendered correctly either.
I've just opened the SVG with: Version: 7.2.0.0.alpha0+ / LibreOffice Community Build ID: 0c67217d767baada12587dace9d29b955d50e774 CPU threads: 4; OS: Linux 5.10; UI render: default; VCL: gtk3 Locale: en-US (en_IL); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-04-26_09:25:26 I confirm that I can't ungroup the diagram object so as to access its constituent shapes. I would also expect that an SVG file opened in LO draw Now, if I right-click it and choose "Edit with external tool", it opens Inkscape, not an image editor. And in Inkscape, I can ungroup the shapes and manipulate them to my liking. Both in LO Draw and in Inkscape I can see the bottom piece of text saying "viewer does not support full SVG 1.1". I should also mention that this is not limited to the attached SVG file. If I save some SVG file I create in Inkscape, and open in from LO Draw, I also get the same thing: A single, non-ungroupable, object, editable with an external tool.
Dear David García, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Hi, I've tested it again on LibreOffice 7.5.3.2 (x64) and Windows 11 (22h2), but I get, for the most part, the same results. I don't know if the problem has to do with the conversion made by draw.io from the Visio format, but just in case, I've opened again my original Visio file and I have exported it into a new VSG file (see attached). The latest draw.io version avalaible as a web app, as of May 20 2023, is 21.0.6. 1. Once again, if I open the SVG file on LibreOffice Draw, I get an image, not an editable document. 2. The document still presents the same problems with formatting. The main apparent issue is that the text is cut. 3. If I open my previous SVG, I still get the message “Viewer does not support full SVG 1.1”, but if I open my newly produced SVG, I get this message instead: "Text is not SVG – cannot display". 4. My original Visio document still works fine in Draw, so I could just use it in LibreOffice and forget about my SVG document. It's just that I was hoping to make a full transition from Microsoft Office to LibreOffice and forget about my old files, but I keep my originals just in case. 5. As I said in a previous post, my SVG file doesn't work very well with Inkscape either, so the issue doesn't just affect LibreOffice. Edit: before posting this message, I've tried something else. I've created a new draw.io file using one of the templates, I've exported it as an SVG file and, when I've opened it in LibreOffice and Inkscape, it still has the same issues. Therefore, it looks like, regardless the source of the file (whether it's a new document or it's imported from a Visio document), draw.io generates problematic SVG files. In fact, I have found this: https://github.com/jgraph/drawio/issues/774 Let me know if there's something else I could try. Thanks!
Created attachment 187410 [details] SVG produced with draw.io 21.0.6
This is the last comment from one the draw.io developers in the thread mentioned in my previous post (https://github.com/jgraph/drawio/issues/774): "Will we implement native SVG text in the app and export that, no, never. If you need this beyond anything, fork the project and implement it." This thread explains how they tried to provide a workaround when exporting the draw.io document into the SVG format, but the SVG file still doesn't work well in LibreOffice or in Inscape. They actually recommend exporting the document as a PDF document instead. It looks like the draw.io developers don't intend to change this behaviour in the long term.
I confirm the error, indeed when opened in Draw, it is 1 image, as you can't select any of its elements and at the bottom it says: "Viewer does not support full SVG 1.1". Version I tested with: Version: 7.5.3.2 (X86_64) / LibreOffice Community Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3 CPU threads: 12; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win Locale: pl-PL (pl_PL); UI: pl-PL Calc: CL threaded
I get the same results as Piotr in Comment 24. Imported SVG looks more or less like Telesto's image in Comment 9. Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 676e0527d2f31556eccae314fbb12ce204f02ec7 CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win Locale: en-US (en_US); UI: en-US Calc: CL threaded Interestingly, in older versions, like 5.4 and 4.0, the imported SVG is editable, though there are a few additional issues, like missing text and background colors in the shapes.