Bug 200097

Summary: Pattern in SVG created by Inkscape does not load
Product: [Applications] karbon Reporter: Damian Kaczmarek <rushpl>
Component: generalAssignee: Jan Hambrecht <jaham>
Status: CONFIRMED ---    
Severity: normal CC: bvbfan, harald.brennich
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Here how it looks in Karbon
How it should look
SVG source
Screenshot firefox
Screenshot dolphin

Description Damian Kaczmarek 2009-07-13 23:31:37 UTC
Version:           2.0.1 (using KDE 4.2.96)
OS:                Linux
Installed from:    SuSE RPMs

As suggested by jaham http://jaham.wordpress.com/2009/07/12/svg-filter-effects/#comment-276 I post it as a bug report.
Comment 1 Damian Kaczmarek 2009-07-13 23:32:45 UTC
Created attachment 35290 [details]
Here how it looks in Karbon
Comment 2 Damian Kaczmarek 2009-07-13 23:35:02 UTC
Created attachment 35291 [details]
How it should look
Comment 3 Damian Kaczmarek 2009-07-13 23:36:55 UTC
Created attachment 35292 [details]
SVG source
Comment 4 Jan Hambrecht 2009-08-16 00:50:02 UTC
I fixed some things in the pattern parsing code in the svg import filter. The thing still missing is support for pattern transforms.
Comment 5 Harald Brennich 2019-02-13 16:11:04 UTC
Created attachment 118044 [details]
Screenshot firefox
Comment 6 Harald Brennich 2019-02-13 16:13:22 UTC
Created attachment 118045 [details]
Screenshot dolphin
Comment 7 Harald Brennich 2019-02-13 16:18:05 UTC
Even simple patterns fail, e.g.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="32" version="1.1" xmlns="http://www.w3.org/2000/svg" height="32" viewBox="0 0 32 32" xmlns:xlink="http://www.w3.org/1999/xlink" >
  <defs>
     <pattern id="pat1" x="0" y="0" width="0.28" height="1" patternUnits="objectBoundingBox" patternContentUnits="objectBoundingBox" >
       <rect x="0" y="0" width="0.14" height="1" fill="white"/>
       <rect x="0.14" y="0" width="0.14" height="1" fill="black"/>
     </pattern>
 </defs>
  <g >
   <rect x="0" y="10" width="28" height="5" stroke="white" fill="url(#pat1)" transform="rotate(-20 0 10)"/>
   <rect x="2" y="12" width="28" height="5" stroke="white" fill="url(#pat1)"/>
   <rect x="2" y="17" width="28" height="14" stroke="white" fill="black"/>
   <text x="10" y="28" font-weight="bold" font-size="10" fill="red">M</text>  
   <text x="18" y="28" font-weight="bold" font-size="10" fill="blue">V</text>  
  </g>
</svg>
This svg works fine with firefox and emacs see Screenshot firefox), but not with dolphin or as desktop symbol (see Screenshot dolphin):
Comment 8 Anthony Fieroni 2019-06-04 19:59:19 UTC
Which version did you use, i see it exactly as https://bugsfiles.kde.org/attachment.cgi?id=118044