Bug 329372

Summary: Krita 2.8 (beta): unable to display most svg files (from openclipart.org)
Product: [Applications] calligracommon Reporter: Silvio Grosso <grossosilvio>
Component: filtersAssignee: Calligra Bugs <calligra-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: wishlist CC: halla, tamtamy.tymona
Priority: NOR    
Version First Reported In: 2.8 Beta   
Target Milestone: ---   
Platform: Compiled Sources   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Silvio Grosso 2013-12-29 16:22:59 UTC
krita 2.8 (beta 1) installed on Windows 7 (64 bit) and Krita 2.9 (pre-alpha) installed on Ubuntu 13.10 - Unity Desktop (through the Lime Ppa by Dmitry) are unable to open correctly most svg I have tried.

It looks like Krita 2.8 beta is unable to fetch the correct "size" of these files: because they are opened but many parts of these svg images are missing (i.e. they are displayed wrongly).

These same svg files work fine on Gimp 2.8.10, Firefox 26, Internet explorer, Libreoffice Draw (even Nautilus, on Ubuntu 13.10 - Unity, shows their preview fine)

I suppose  it is a "Karbon-backend" problem (since I have read often-times that this software is no longer maintained).
For instance, the "select color tool" doesn't work either (it always stays black (default option) when hovering over all these svg images). On the contrary, the select color pick tool works fine on them with Gimp 2.8.10.
I suppose the same problems might likely occur with other Calligra softwares (e.g. Calligra Words).

Reproducible: Always

Steps to Reproduce:
1. Fire up Krita 2.8 beta
2. Open a svg image (I have attached 5 svg samples): they are imported but some of its parts are missing (the vector layer does not display them correctly).

Actual Results:  
Some parts of svg files are missing (not visible at all)

Expected Results:  
Krita should import and display the svg format (well, actually, IMHO, it is not that important...)

Here you can download a zip folder with 5 svg files (all downloaded from openclipart.org to test Krita):
https://dl.dropboxusercontent.com/u/3095134/BUGS_REPORT/KRITA_SVG_SAMPLES.zip

4 of them are not displayed correctly (their name ends up with NO);
only one is working now : little_cat_OK

In this same ZIP folder there is a png screenshot as well. 
I have taken it to show the behaviour of Krita 2.9 (pre-alpha) on Ubuntu 13.10 (Lime ppa) with one of the 4 svg images which are not working now.
Comment 1 Halla Rempt 2014-01-01 11:58:27 UTC
Yes... It's sort of a known issue. For instance, gradients aren't properly supported by Karbon, and so Krita cannot load them properly either.
Comment 2 Halla Rempt 2014-01-01 12:02:02 UTC
To expand a bit, one problem is that Karbon isn't actually a generic all-purpose vector editing application like inkscape. It's basically an ODG editor -- ODG being the OpenDocument vector graphics file format. IF you try to load the little cat svg in oodraw, you'll see it's lacking accuracy, too.

Imo, ODG needs to die and be replaced by SVG, but then, I'm not one of the real stakeholders there :-)
Comment 3 Tiar 2020-06-29 10:36:46 UTC
Is this still relevant? It looks like a bug that should be closed since Krita is no longer part of Calligra, the svg example files are gone and the bug report is really old, so the svg part of Krita was rewritten a few times already anyway.
Comment 4 Halla Rempt 2020-06-29 11:22:15 UTC
Well, we rewrote it only once, but yes, this bug isn't relevant anymore for Krita. If we're missing parts of svg in our parser/renderer, we need a report for every issue.