rebootcode / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

Radial Gradient & Png Export #655

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a shape with a radialgradient
2.Create png
3.

What is the expected output? What do you see instead?
Png similar to previous view. Png with shape of only one color

In what browser did you experience this problem? (ALL, Firefox, Opera 10
Alpha, etc)
FF3.6

Please provide any additional information below.

Example of svg causing the problem

<svg width="550" height="400" xmlns="http://www.w3.org/2000/svg" 
xmlns:xlink="http://www.w3.org/1999/xlink">
 <metadata id="metadata3593">image/svg+xml</metadata>
 <defs>
  <g id="shape2">
   <defs>
    <pattern id="pattern2" patternContentUnits="userSpaceOnUse" patternUnits="userSpaceOnUse">
     <radialGradient id="gradient2">
      <stop offset="0%" stop-color="#caf0f9" id="stop3338"/>
      <stop offset="50%" stop-color="#88c6ee" id="stop3340"/>
      <stop offset="76%" stop-color="#1658b8" id="stop3342"/>
      <stop offset="88%" stop-color="#03188b" id="stop3344"/>
      <stop offset="100%" stop-color="#ffffff" id="stop3346"/>
     </radialGradient>
     <rect x="-6" y="-12" width="282" height="264" fill="#ffffff" id="rect3348"/>
     <g transform="matrix(0.193, 0, 0, 0.19, 139, 107.4)" id="g3350">
      <rect x="-819.2" y="-819.2" width="1638.4" height="1638.4" fill="url(#gradient2)" id="rect3352"/>
     </g>
    </pattern>
   </defs>
   <path d="m239.8,28.4q42.2,40.45 42.2,97.6q0,57.10001 -42.2,97.5q-42.15001,40.5 -101.8,40.5q-59.65,0 -101.85,-40.5q-42.15,-40.39999 -42.15,-97.5q0,-57.15 42.15,-97.6q42.2,-40.4 101.85,-40.4q59.64999,0 101.8,40.4z" fill="url(#pattern2)" id="path3354"/>
  </g>
 </defs>
 <g>
  <title>Layer 1</title>
  <g id="g3543">
   <use xlink:href="#shape2" id="use3545" transform="matrix(1, 0, 0, 1, 108.45, 67)"/>
  </g>
 </g>
</svg>

Original issue reported on code.google.com by Clement.Forest@gmail.com on 27 Aug 2010 at 8:37

GoogleCodeExporter commented 9 years ago
Clement,

I believe we are waiting on a fix to CanVG, which is the script used to handle 
generation of the PNG files. You may want to star this issue:
http://code.google.com/p/canvg/issues/detail?id=48

Original comment by adrianbj...@gmail.com on 27 Aug 2010 at 1:30

GoogleCodeExporter commented 9 years ago

Original comment by adeve...@gmail.com on 28 Sep 2010 at 2:13

GoogleCodeExporter commented 9 years ago
I just checked out r130 of CanVG and the behavior is much better - the radial 
gradient is still not perfect, but I definitely think it is time to update 
CanVG in SVGedit - it seems like there has been significant progress with 
radial gradients in general.

Original comment by adrianbj...@gmail.com on 27 Feb 2012 at 6:18

GoogleCodeExporter commented 9 years ago
I have submitted another issue:
http://code.google.com/p/canvg/issues/detail?id=132

Original comment by adrianbj...@gmail.com on 27 Feb 2012 at 6:24