SVG import

41 replies [Last post]
glotun
Offline
Last seen: 3 years 13 weeks ago
Title: ★★★
Joined: 12 Feb 2011
Posts: 21

When I import a SVG file into LO it appears broken/wired.

Is the SVG import buggy or am I doing something wrong?

Thanks.

AttachmentSize
import.zip1.87 KB
Kabel
Offline
Last seen: 2 weeks 6 days ago
Title: ★★★★★
Joined: 16 Feb 2011
Posts: 103
Inkscape issue, canvas size missmatch to contents

That file is an Inkscape svg file.

Are you really sure this file is supposed to contain just the relatively small sized characters a and d?

I guess it won't show in any programs because of that. This is more likely a Inkscape issue, so try resize the canvas so it fits to the contents.

glotun
Offline
Last seen: 3 years 13 weeks ago
Title: ★★★
Joined: 12 Feb 2011
Posts: 21
Yes it should be a "D"

Yes it should be a "D" (capital D) and an "a" (lowercase a).

I used some text in Inkscape and converted it from text to a "form" so the text wont be a text but a drawing and saved as a normal SVG. When opening in LO it appears wired.

I deleted all the other text but left this two charakters/drawings to find out what the problem may be. I made this file on XP. When opening it in Ubuntu (in Fspot or eye of gnome) it shows up normal but looks like a png/jpg file (dunno if the file is converted??). 


thanks Kabel

Kabel
Offline
Last seen: 2 weeks 6 days ago
Title: ★★★★★
Joined: 16 Feb 2011
Posts: 103
Save as plain SVG
Try to save as "Plain SVG" with Inkscape, and then try to import it again in LO.
glotun
Offline
Last seen: 3 years 13 weeks ago
Title: ★★★
Joined: 12 Feb 2011
Posts: 21
Tried to import the plain SVG

Tried to import the plain SVG in writer and draw but it does not work. I also tried to scale down the canvas but that does not help either. When I import this SVG file in FreeCAD on XP it works so I guess it is a problem of LO??

MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
hidden SVG layer showing up in Writer 3.3.2

I have the problem, that in Writer 3.3.2 an imported SVG with a hidden layer (edited and exported as normal SVG in Inkscape 0.48.2; all on Win7SP1x32) shows the hidden green layer. 

I have added Screenshot and the SVG-File.

Is this a bug or do i miss something in the SVG or import options?

AttachmentSize
LO-3.3.2-Writer-Imported-SVG-hidden-green-layer-screenshot.png 15.4 KB
church_Kirche_norm_SVG.zip 2.3 KB
n/a
vrekrer
Offline
Last seen: 4 years 14 weeks ago
Title:
Joined: 29 Aug 2011
Posts: 2
More SVG import problems

I have the same problem with inkscape text. It does not show good on LO.

If the text is converted to a path (Object to path function on inkscape) the svg looks ok on LibreOffice


I also have problems with SVGs created by matplotlib (python plotting library).

And with SVGs created by this page: http://www.codecogs.com/latex/eqneditor.php that is a page that renders latex formulas as images.

Latex equations created by the inkscape plugin has no problems on LO.

n/a
MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
LiO SVG import support
This problems make me sad: I am on the way to write a scientific book and I was on the point to choose LiO Writer/Zotero/SVG/PDF against MS Word/Zotero/WMF/PDF to integrate and print quality graphics.
n/a
ponsiacreds
Offline
Last seen: 4 years 35 weeks ago
Title:
Joined: 3 Sep 2011
Posts: 1
To make sure you can inkscape

To make sure you can inkscape text in LO:

Before you save in Inkscape:

  1. Select all text objects ( Ctrl click all text)
  2. Covert objects to paths ( Object->Object to Path)
  3. Save
n/a
MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
LiO is not SVG ready

LiO should not promote SVG-capabilities until at least 90% of the common file-features are supported. See the pictures below for a comparison of the same SVG-File in IE 9, Firefox 8, Inkscape 0.48.2 and LibO 3.4.4 Win x86 Writer 

n/a
MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
No news for SVG Support in 3.4.5

There are no news/improvements for SVG users in LibO 3.4.5 Win x86 Writer:

Here is the used SVG (ZIP file):

AttachmentSize
Template_SVG-Test-Export_normal.zip 15.97 KB
n/a
kjertil
Offline
Last seen: 4 years 16 weeks ago
Title:
Joined: 2 Feb 2012
Posts: 1
3.5 does not seem to work
3.5 does not seem to work still...
richardbrucebaxter
Offline
Last seen: 4 years 15 weeks ago
Title:
Joined: 14 Feb 2012
Posts: 1
LO advertised feature SVG import requires immediate review
LibreOffice is definitely not SVG ready. Why exactly were "import SVG pictures" and "SVG import into Writer" listed as new features in LibreOffice 3.3? (see http://www.libreoffice.org/download/new-features-and-fixes - note that this notification appears currently removed/archived, but can be found in Google's cache). LibreOffice 3.5 has the same issue.

Please care to read the OpenOffice.org status of this issue, in particular my review here; http://wiki.services.openoffice.org/wiki/SVG_User_Experiences#Importing_...

The only way to import SVG into OpenOffice and LibreOffice at present is to use Haumacher's import filter (http://haumacher.de/svg-import/#batch). This appears to have been made available for LibreOffice here; (http://libreoffice-na.us/English/add-ons-extensions/svg-import-1.2.2.oxt / http://libreoffice-na.us/English/extensions.html).

Cheers,
 
Richard

MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
Have not found 3.5.1

Have not found 3.5.1 Changelog but as a bugfix release I think there is no reason to try this version for updates in the SVG behaviour.

The hope is, that one (or more) of the over 400 devs will pick up SVG in LiO and bring the support to a new level in one of the next branches. I only fear they don't look to often in these threads here.

n/a
PeterRoots
Offline
Last seen: 2 years 29 weeks ago
Title: ★★★★★
Joined: 25 Oct 2011
Posts: 941
They probably don't look, but
They probably don't look, but they do at the bug reports and feature requests on the LO bugzilla site
Linux Mint 15 LibreOffice 4.1.1.2 : OpenSUSE 12.3 LibreOffice 4.0.3
MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
Comparison of SVG-Renderers

Comparison of SVG-Renderers (Updated):

Inkscape Win7x32 0.48.2 - Wikimedia rsvg 2.35.2 - Internet Explorer Win7x32 9.0.8112 - Chromium 17 Win7x32 - Mozilla Firefox Win7x32 11.0 - LibO Win7x32 3.5.1.2 Writer ImportInsert - LibO Win7x32 3.5.1.2 Draw OpenSVG

www.ImageBanana.com - InkscapeWin7x320.48.2.png www.ImageBanana.com - Wikimediarsvg2.35.2.png www.ImageBanana.com - InternetExplorerWin7x329.0.8112.png www.ImageBanana.com - Chromium17Win7x32.png www.ImageBanana.com - MozillaFirefoxWin7x3211.0.png www.ImageBanana.com - LibOWin7x323.5.1.2WriterImportInsert.png www.ImageBanana.com - LibOWin7x323.5.1.2DrawOpenSVG.png

There seems to be a major improvement in LibO Writer 3.5.1 SVG Import, even if I have not seen any statement/changelog about this. LibO Draw Open SVG still seems to have some bugs.

But I don't know how well this new behaviour is integrated, because testing the PDF output of Writer everytime transparent objects where detected (even if I delete all of them) and the whole image is written as pixel-image in the PDF! (no difference if normal or PDF/A) This is sad. Looks like a temporary solution to get better import/view experience, but with no good vector export. I wish a more fine grained PDF export, where every possible object remains vector and options about opacity/glow. Until this important feature for printing and portability is not implemented, SVG in LibO Writer is a feature I don't will use regularly. I hope this was the first step and maybe LibO 3.6 will bring some more. 

You can use the attached SVG-Test file freely for your own testings. It is saved directly from Inkscape and was used for all the testings / screenshots above.

AttachmentSize
SVG-Test-File-2012b-inkscape.zip 20.92 KB
n/a
MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
Only Bitmaps when exporting SVG 2 PDF
In LibO Win7x32 3.5.3.2 Writer ImportInsert still imported Inkscape SVG is exported as Pixelimage to PDF. LibO PDF-Exporter complains about transparent objects in the page element. Even if only one plain rectangle with no transparency is in the SVG.
n/a
glotun
Offline
Last seen: 3 years 13 weeks ago
Title: ★★★
Joined: 12 Feb 2011
Posts: 21
I think in Writer the PDF
I think in Writer the PDF Export is not the problem but the import. Seems to me like Writer imports the SVG as Bitmap.
MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
@glotun: I have to agree now.
@glotun: I have to agree now. It seems the SVG import in to the LibO applications is responsible. Even Draw 3.5.3.2 does import a SVG as a pixel image now (aargh!). Seems that in 3.6 no SVG relevant changes are planned.
n/a
oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
some further information

It is going to take a while to fully implement SVG import (and export) support. I thought the comment here by Michael Meeks on 23 May 2012 was rather interesting.

Quote:
The SVG work is ongoing. If you insert an object in writer you will get a bitmap, if you load it in draw then paste it in you'll get an editable vector graphic; as/when we get the vector mode really good we'll drop the bitmap mode.

Christina Roßmanith and Marco Cecchetti are currently working on some parts of the overall puzzle however getting the SVG spec (DOM) to play nice with the ODF spec is not a simple thing. Have a look at these few recent threads for some of the technical details and ongoing work.

MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
Thanks oweng!!! It is really

Thanks oweng!!! It is really nice that you post some of the insider stuff here. We "Normalos" can take a glance and this is much better then no information about SVG-Development here in this Forum.

I wonder if LibO (especially for the export/PDF creation) could not share Inkscape code/tec?

n/a
oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
just another user

Hi MartB. I'm just another user of LO and other open source products, but I do take an interest in what the developers discuss re. aspects of some products that I make regular use of. I have a background in IT and can thus understand some of what is discussed. If I am fortunate I can even recall bits of information I have read (i.e., locate them) and share them here on the list.

SVG import / export will improve over time, you can rest assured of that. I am not sure to what extent code can be shared between other projects, such as Inkscape. LO uses LGPLv3 license and Inkscape GPLv2 license. Someone better (legally) versed than me would need to determine exactly what is possible in this respect.

oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
SVG and ODF specs

A little more information regarding integrating the SVG and ODF specification, which is largely at the heart of this issue. The W3C page gives a decent outline on this matter (2005 through 2009). The link to the blog entry by OOXML developer, Jesper Lund Stocholm, dated 2008, is worth reading. The link to the Inkscape wiki page looking at SVG/ODF is inaccurate, it is now here, and the detail there appears to relate to an earlier version of the ODF spec. Under ODF v1.2 the relevant (corresponding) SVG parts come under section 10.3 Drawing Shapes but otherwise appear to be the same. There are other related posts on the OASIS mailing lists, which I will see if I can dig up.

EDIT (26/7/2012): Related unresolved OASIS Issues (which sometimes point to corresponding Mailing List posts) include:

  • OFFICE-1374 (11/Mar/09), SVG namespace;
  • OFFICE-1431 (26/Mar/09), SVG integration in greater detail;
  • OFFICE-1909 (30/Jun/09), round rectangle corners;
  • OFFICE-2016 (26/Aug/09), reference SVG canvases as textures within X3D;
  • OFFICE-2109 (14/Oct/09), points are integers in ODF, but floating-point in SVG;
  • OFFICE-2657 (30/Apr/10), suggestion for SVG (and other) preview image;
  • OFFICE-3710 (31/Jul/11) 19.145, draw:enhanced-path current point definition unclear;
  • OFFICE-3711 (31/Jul/11) 19.145, draw:enhanced-path What is the definition of w h (size);
  • OFFICE-3735 (18/Dec/11) missleading text in fo:min-height description; FIXED 2012-10-23
  • OFFICE-3742 (26/Jan/12) Public Comment: ODF1.2 draw:style rect/round vs svg:stroke-linecap;
  • OFFICE-3758 (05/May/12) The addition for draw:circle in 19.571.10 not clear.

These issues are all slated for inclusion in ODF v1.3 (with the exception of 3742 and 3758).

MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
Just for the protocoll: LibO

Just for the protocoll: LibO Win7x32 v3.6.0.4 Writer and Draw SVG behaviour seems like 3.5.x

n/a
oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
more OASIS issues
@MartB, many thanks for your continued testing of the SVG support issue. Always good to have this info. Here are a few more ODF/SVG-related OASIS issues that have been documented since my last update:
  • OFFICE-3778 (27/Aug/12) ODF 19.171 draw:formula vs. svg:viewBox attributes logheight / logwidth.
  • OFFICE-3779 (27/Aug/12) ODF 19.570 svg:viewBox (top,left,bottom,right) vs. SVG:viewBox (min-x,min-y,width,height).
  • OFFICE-3780 (27/Aug/12) ODF 18.3.18 length and 19.5711 svg:width negative and percentage values.

1 Reported as 19.573, but AFAIK this is in error.

MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
I’ve looked trough the
I’ve looked trough the changelogs of 3.6.x: 3.6.3 fdo#49678 ODF export: add svg:viewBox to draw:connector [Michael Stahl] 3.6.0 fdo#50975 3.6.0b1: Segfault when accessing the LO About dialog with librsvg ≈ 2.16 [Caolán McNamara]

Hmm: will 3.7 or 3.8 bring some substantial changes/improvements to LibreOffice SVG support?

n/a
MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
Native SVG support trough Apache OpenOffice
If I understand it correctly we can hope for a massive improvement in LibO 3.7 (Armin @ blogs.apache.org): https://blogs.apache.org/OOo/entry/good_news_libreoffice_is_integrating https://blogs.apache.org/OOo/entry/native_svg_support_for_apache Sounds very exciting and I look forward for testing this hopefully in 3.7.0
Quote:
A nice feature I have implemented for Apache OpenOffice 3.4 released in May 2012, the new native SVG Import, will make an appearance to the next LibreOffice version. It replaces the former SVG import greatly improving user experience and removing dependencies of six external libraries, also benefiting startup (a little bit). It has been integrated to the LibreOffice trunk for their 3.7 version recently (see here). … Apache OpenOffice 3.4 supports embedding SVG graphics using a newly created native SVG interpreter implementation. … and the internal handling of SVG vector data is completely vector-graphic oriented. … For all graphic processing the created vector graphic in form of a sequence of primitives is used. This means that you will get best quality in all zoom situations and all resolutions. This is also true for all exports, e.g. printing or PDF export which also uses the vector format. …. I implemented most SVG features from SVG 1.1, but not yet using animations or interactions (but possible in the future due to an own interpreter, impossible with an external SVG renderer). It supports all geometric SVG forms. It supports SVG gradients (using a new primitive for this which will be reused when we add SVG gradients to SdrObjects one day), these have a resolution-dependent low-level format to not waste runtime on low resolutions. It supports masks, clipPath, markers, linked content, embedded graphics or SVG (intern, extern, base64), SVG use nodes, text, text on curve and patterns. It does not yet support filters, color profiles, embedded scripts, interactions and linking. These can be added when needed, most of them will need to implement new primitive types (e.g. filtering) which would be useful for the future anyways.

EDIT: I was interested to give a look at the dev. I saw currently there is only a 3.6.x and 4.0.x dev version, so I installed libreoffice-4-0~2013-01-29_08.01.47_LibO-Dev_4.0.1.0_Win_x86.msi on a WinXPx32 test system.
Here you can see a comparison of screenshots for the test file from above (SVG-Test-File-2012b-inkscape.svg):
Inkscape Win7×32 0.48.2 – LibO Write Dev_4.0.1.0 WinXPx32 – PDF output of LibO Write Dev_4.0.1.0 WinXPx32
www.ImageBanana.com - InkscapeWin7x320.48.2.png www.ImageBanana.com - LibO4svgtest.PNG www.ImageBanana.com - LibO4svgPDFexport.PNG
Attached are PDF export files of the SVG file from Inkscape Win7×32 0.48.4 – LibO Write Dev_4.0.1.0 WinXPx32 (note also the difference in file size).

Really a major step for SVG in LibO!!! The import seems without problems and the included renderer is very good! Crucial will be a very good PDF export.
What is very nice and maybe seems at the same level of the PDF-export of Inkscape 0.48.4 (cairo 1.11.2) is the good handling of transparency/opacity (vector mantained)!
Some (hopefully small) work needs to be done for expected results. I have noted the following points to improve:
a) Line thickness (in Inkscape Stroke Style Width) is not exported correctly to PDF (only a “hairline”). Seems the major showstopper for good PDF/print usage.
b) Radial gradients differ from all other renderer interpretations and also linear gradients seem sligtly different then “normal”. This is also an important misbehavior.
c) Cloned Tiles (masked) seem to be rasterized by exporter maybe depending from resolution.
d) some text/links seem to be showed not on the correct place and/or comments show up?
e) “Help lines” in SVG seem to be showed by the new LibO renderer/exporter (here blue). This could maybe also a problem of Inkscape saving (Guide Lines?) in the test file or LibO settings?
f) blur filter is not supported (as announced). Not a major thing, but escpecially this filter maybe should be supported both by renderer/exporter (rasterizing in PDF by setting like in Inkscape/cairo).

All in all I’m very happy about this finally happen and congratulate Armin @ blogs.apache.org and all others involved in this major new implementation. I’m searching for a way to report these points (to Armin or LibO devs?).

AttachmentSize
SVG-Test-File-2012b-inkscape-PDFexport.pdf 162.41 KB
SVG-Test-File-2012b-LibO4-PDFexport.pdf 333.79 KB
n/a
oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
v3.7 = v4.0
MartB, once again thanks for all the testing and info you provide with regard to this ongoing matter. Just a short note to let others know that the v3.7 series was rolled over into the v4.0 series some time ago and will be the next release series (there will not be a v3.7 release). Also, most of the changes in the v4.0 release will be of a behind-the-scenes nature, like those you note. It is likely to mark a major division between the AOO and LO projects, such that they are no longer offer a similar experience.
MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
I tought v3.7 = v4.0 but
I tought v3.7 = v4.0 but haven’t searched for confirmation.
oweng wrote:
… Also, most of the changes in the v4.0 release will be of a behind-the-scenes nature, like those you note. It is likely to mark a major division between the AOO and LO projects, such that they are no longer offer a similar experience.
Sorry to get a bit off-topic here and to not be informed well: “behind-the-scenes changes” and “no longer offer a similar experience” then means that AOO will change also GUI in v4 while LibO not?
n/a
oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
LO API changes are significant
This is somewhat OT for this thread, but this commentary will explain what I mean.
MartB
Offline
Last seen: 2 years 36 weeks ago
Title: ★★★
Joined: 17 Aug 2011
Posts: 30
have opened a Thread for the
have opened a Thread for the OT discusssions: v4 2013: LibreOffice and Apache OpenOffice future, comparison, codebase, merging?

Back to SVG support: I will follow the changes in LO v4 (dev,rc,etc.) and probably also in AOO 4, because this new native SVG Import introduced by Armin is almost a full step in the direction I like to have the SVG support.

n/a
glotun
Offline
Last seen: 3 years 13 weeks ago
Title: ★★★
Joined: 12 Feb 2011
Posts: 21
Thanks for the test
Thanks for the test MartB.

(in the first screenshot (InkscapeWin7×320.48.2.png) linked image not found)

in the second screenshot (LibO4svgtest.PNG) the lines look good
so the linethickness works in the Import right?

in the third screenshot (LibO4svgPDFexport.PNG) the lines look thinner than in the second screenshot
here the lines do not look like a “hairline” -> why??
that screenshot is a screenshot of the PDF-export from LO4 right?

in the first PDF-attachement (SVG-Test-File-2012b-inkscape-PDFexport.pdf)
-the Polylines figure is not rotated the same way as in all the other screenshots/pdf-file
-the blured Text (BW) is not blured -> Inkscape bug???
-the “2 Inkscape pattern fills” look like rasterized image -> Inkscape bug???

in the second PDF-attachement (SVG-Test-File-2012b-LibO4-PDFexport.pdf)
-the “Strokes / markers” thickness is correct
-> line thickness is incorrect but stroke thickness is correct ???

oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
a few SVG bugs for v4.0
Just a note for this thread about FDO#61230 FDO#58420 and FDO#61899 which indicate that SVG performance has been adversely impacted in the v4.0 series. Second bug also mentions FDO#62461 which contains some interesting info about SVG to PNG conversion (handling) differences between v3.6 and v4.0. The new v4.0 SVG algorithm evidently has some problems. In particular, refer comments #9 and #11 in that last one. This is a decent example illustrating why users should be wary of passing files back and forth between different file formats and / or different versions of the same software.

EDIT: FDO#61230 was resolved as a duplicate of FDO#58420. FDO#51510 is also related for DOC/DOCX file formats. FDO#42092 also contains interesting information about the new SVG-handling code in LO v4.0.
EDIT2: FDO#62461 was fixed 2013-11-15.

Gunter
Offline
Last seen: 1 year 51 weeks ago
Title:
Joined: 5 Jun 2014
Posts: 1
Workaround for SVG use in LO 4.2.4.2
I tried to use .svg Pictures in LO Impress 4.2.4.2 Import seems to be still buggy there. When using Insert->Graphics->from File Pictures apeared garbeled with black background, completely black or with black surfaces in the corners of maeandering lines.

But the Import in Writer worked fine.
so a possible Workaround is to import Pictures in a Writer Document, then use copy/paste to Impress.
By that way pictures look fine and file size is low as expected. So they seem to be saved in a correct vector format.
Export as PDF seems to work as well, PDFs are small size with what seems to be vector pictures.

Hope that helps for practical purposes

Using LO 4.2.4.2
dhfx
Offline
Last seen: 1 year 8 weeks ago
Title:
Joined: 27 Mar 2015
Posts: 2
Still not fixed in 4.2.7.2 Writer
I’m exporting SVGs from Dia. When I import into Writer, the image is converted to a bitmap and stays that way, so when I print, it looks like an aliased bitmap. Is it not possible to keep the SVG representation and re-convert it as needed, instead of re-scaling the original bitmap?

Another proposed tweak: On the “Picture” edit menu, have a “Replace Picture” option (as Word does) so if I want to edit the SVG and re-import it, I can replace the original image in one step.

LO Writer Version: 4.2.7.2
Build ID: 420m0(Build:2)

- dhfx

oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
still plenty of SVG handling bugs
@dhfx, the list of open bugs for svg+import is still quite lengthy. Given that different applications create differing SVGs, it can be useful to test exporting the same graphic from various applications. Perhaps also try opening the SVG with Draw and then copy/paste to Writer (as a test).
dhfx
Offline
Last seen: 1 year 8 weeks ago
Title:
Joined: 27 Mar 2015
Posts: 2
SVG import is OK - problem is on .docx save
OK, did another test. My apologies, the problem seems NOT to be with SVG import – whether I import directly into Writer or via Draw with copy-and-paste, when I zoom in, the image is re-rendered correctly at each zoom level so there is no pixelation visible on the screen. Printing also works correctly. If I save as .odt and reload, still OK.

In this case, for reasons of necessity, I must save the Writer doc in Word .docx format. When I reload it, I find that the images have been saved as bitmaps. Formerly, when I composed in Word and imported my vector figures as extended metafiles (.emf), the figures were saved in vector format. I don’t suppose there’s any chance of fixing the .docx save to preserve vector graphics?

- dhfx

oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
known problem
@dhfx, Microsoft has a history of being anti-SVG, preferring instead their own WMF/EMF format. Unfortunately LO has poor WMF/EMF support at this time however the developer are aware of the issue (what is required is a native WMF/EMF rendering engine).
oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
change in filters with v5.2
All who use SVG, please note a coming change in open/import filters for v5.2 as outlined in my answer here. The developers are hoping to eventually remove the opening filter and replace it with the import filter. Refer ESC notes for:
oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
progress
For those that are interested there has been quite a bit of work done recently to improve SVG support. The cgit log indicates that Xisco Fauli has been instrumental in helping bring these improvements to LO. If you are making use of SVGs please test using v5.x and report back any findings. Thanks.
piotrlg
Offline
Last seen: 3 weeks 3 days ago
Title:
Joined: 6 May 2016
Posts: 1
SVG black boxes
I have the latest (5.1.2.2, win64) version. Importing SVG (from Inkscape, both formats native Inkscape and plain) has the same bug (http://en.libreofficeforum.org/sites/libreofficeforum.org/files/svg-bug.jpg).

Looks like fighting with vectorised drawings is still heavy in 21 century. The same for MS office, were they force wmf/visio collaboration. Sad, that I’m forced to use png/jpg making the files relatively big.

Is SVG not standardised enough that after so many years the problems are still there?

Regards
P.

AttachmentSize
svg-bug.jpg 13.46 KB
oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
styles support?
piotrlg wrote:
Looks like fighting with vectorised drawings is still heavy in 21 century. The same for MS office, were they force wmf/visio collaboration. Sad, that I’m forced to use png/jpg making the files relatively big. Is SVG not standardised enough that after so many years the problems are still there?
I have largely addresses these issues in my comments up thread. There are several factors involved, many stemming from how (in which application) the SVG was created.

This particular issue may relate to gradients being used in the boxes. The LO SVG import filter evidently does not yet support text/css styles. Refer tdf#94765.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.