Bug 333497

Summary: Bad SVG file interpretation
Product: [Applications] karbon Reporter: Rafael Linux User <rafael.linux.user>
Component: usabilityAssignee: Jan Hambrecht <jaham>
Status: CONFIRMED ---    
Severity: major CC: bvbfan, finstrodelapradera-foros, private_lock, rafael.linux.user, rgb.mldc
Priority: NOR    
Version: 2.8.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Rafael Linux User 2014-04-16 10:48:58 UTC
Karbon misinterpret SVG files most of time. 
- Show in an incorrect aspect ratio the loaded SVG
- Doesn't not show part of SVG draw

Those SVG files are dowloaded from OpenClipart and showed correctly with Gwenview and Inkscape.

Reproducible: Always

Steps to Reproduce:
1.Open the SVG file
Actual Results:  
- Distorted aspect ratio of draw
- Hidden part or black filled shapes

Expected Results:  
See shapes as with Gwenview or Inkscape

As an Inkscape / GIMP user for years, was trying to give an opportunity to QT based alternatives. I was thinking Calligra was in the way, but must say that sadly, user can be fighting with basic problems of some applications like Karbon (or Krita on SVG import).
Comment 1 Christoph Feck 2014-05-04 22:08:38 UTC
Could you please provide links to (or attach) SVG files that do not load correctly?
Comment 3 rgb.mldc 2014-06-19 13:49:22 UTC
AFAIK, Qt does not support the full SVG spec, just 1.2 Tiny. That means complex SVGs with text on paths or other complex features are not properly rendered on Qt based apps. See the feature request I just filled (bug 336436) for gwenview, asking to switch to webkit in order to display SVG files right. 

Note that the SVG files are wrongly rendered on Words and other Calligra applications too.
Comment 4 Rafael 2014-06-19 22:45:11 UTC
Hi rgb.mldc
You have reason about other calligra applications fails too on rendering SVG, but Karbon should do at least work like Inkscape, but is far still. And , as you can see on my linked SVG files, it fails in elemental tasks like respect original aspect ratio (see "streched" links).
Comment 5 Andrew Crouthamel 2018-11-12 02:57:14 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Holger 2018-11-12 23:50:03 UTC
Fresh examples:

- https://openclipart.org/download/309949/1541888459.svg
The guy at 5 to 12 should wear glasses, but instead his hole face is covered in black

- https://openclipart.org/download/309844/1541564142.svg
exaggerated line width of buttons and outer silhouette of TV

- https://openclipart.org/download/309502/1541307148.svg
outer edge has no 3D, only a few solid colors

- https://openclipart.org/detail/3303/acorn
missing 3D highlight on belly and darker shade of brown in Acorn-cap

Haven't seen wrong aspect ratio so far. But sometimes gwenview will create correct thumbnail and cannot display the full image. Also overwriting the same file multiple times in incscape and reloading it in gwenview might crash the later.

This is with:
Gwenview 17.12.3
KDE Frameworks 5.44.0
Qt 5.9.5 (kompiliert gegen 5.9.5)

PS: Example from bug 336436 is also still broken: no text and graphs leave bounding box to the right
Comment 7 Rafael Linux User 2018-11-13 10:31:22 UTC
The fact is that CALLIGRA-KARBON is unmaintained (as they show in a message just when launching the application). So, nothing to say. I gave up about trying to use it after 4 years without news about this bug.
Comment 8 Anthony Fieroni 2019-06-04 20:20:35 UTC
It still maintained, is it look like https://bugs.kde.org/show_bug.cgi?id=391703?