Bug 200097 - Pattern in SVG created by Inkscape does not load
Summary: Pattern in SVG created by Inkscape does not load
Status: CONFIRMED
Alias: None
Product: karbon
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Hambrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-13 23:31 UTC by Damian Kaczmarek
Modified: 2019-06-04 19:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Here how it looks in Karbon (109.01 KB, image/jpeg)
2009-07-13 23:32 UTC, Damian Kaczmarek
Details
How it should look (103.65 KB, image/jpeg)
2009-07-13 23:35 UTC, Damian Kaczmarek
Details
SVG source (69.37 KB, image/svg+xml)
2009-07-13 23:36 UTC, Damian Kaczmarek
Details
Screenshot firefox (1.20 KB, image/png)
2019-02-13 16:11 UTC, Harald Brennich
Details
Screenshot dolphin (947 bytes, image/png)
2019-02-13 16:13 UTC, Harald Brennich
Details

Note You need to log in before you can comment on or make changes to this bug.
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