SVG rendering errors (linux)

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
jmthomas
Posts: 2
Joined: 2011-02-18T13:01:40-07:00
Authentication code: 8675308

SVG rendering errors (linux)

Post by jmthomas »

When I run 'covert.exe -list format' I see this:
SVG SVG rw+ Scalable Vector Graphics (XML 2.4.19)
SVGZ SVG rw+ Compressed Scalable Vector Graphics (XML 2.4.19)

So I guess that means I'm using the internal renderer? I'm on Windows XP and ultimately am trying to compile this against the RMagick Ruby Gem for use in a Rails application. I've already figured out how to create the gem but the rendering is bad.

Do I get RSVG here: http://librsvg.sourceforge.net/? Is there an installation instruction written up anywhere? I've been compiling from the Windows Binary since I'm just trying to create a Ruby Gem and not compiling from source. Will that work if I need RSVG support?
Petr
Posts: 51
Joined: 2010-01-07T09:37:51-07:00
Authentication code: 8675309

Re: SVG rendering errors

Post by Petr »

JFYI if you would like to have some info from me...

I have similar problem on linux, ImageMagick 6.7.2-7 (I have tried newest version 6.7.3-1, too). The problem is really resolved by linking against librsvg.

See https://bugzilla.novell.com/show_bug.cgi?id=724222

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   x="0"
   y="0"
   version="1.0"
   width="60"
   height="60"
   inkscape:output_extension="org.inkscape.output.svg.inkscape">
  <path
     sodipodi:type="arc"
     style="fill:#ffe940;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
     id="path2455"
     sodipodi:cx="14.264608"
     sodipodi:cy="15.757992"
     sodipodi:rx="5.5755067"
     sodipodi:ry="5.720325"
     d="M 19.840115,15.757992 A 5.5755067,5.720325 0 1 1 8.6891017,15.757992 A 5.5755067,5.720325 0 1 1 19.840115,15.757992 z"
     transform="matrix(1.0745385,0,0,1.047335,-3.3079471,31.331362)" />
  <path
     sodipodi:type="arc"
     style="fill:#ffe940;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
     id="path3227"
     sodipodi:cx="14.264608"
     sodipodi:cy="15.757992"
     sodipodi:rx="5.5755067"
     sodipodi:ry="5.720325"
     d="M 19.840115,15.757992 A 5.5755067,5.720325 0 1 1 8.6891017,15.757992 A 5.5755067,5.720325 0 1 1 19.840115,15.757992 z"
     transform="matrix(1.0745385,0,0,1.047335,-3.4527655,-2.5561341)" />
  <path
     sodipodi:type="arc"
     style="fill:#ffe940;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
     id="path3229"
     sodipodi:cx="14.264608"
     sodipodi:cy="15.757992"
     sodipodi:rx="5.5755067"
     sodipodi:ry="5.720325"
     d="M 19.840115,15.757992 A 5.5755067,5.720325 0 1 1 8.6891017,15.757992 A 5.5755067,5.720325 0 1 1 19.840115,15.757992 z"
     transform="matrix(1.0745385,0,0,1.047335,32.896643,-0.9631322)" />
  <path
     style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
     d="M 13.033652,42.042524 C 13.612926,12.499579 43.155871,14.816672 43.155871,14.816672"
     id="path3245"
     sodipodi:nodetypes="cc" />
</svg>
This file gimp sees as

Code: Select all

QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
QQQP'  )4QQQQQQQQQQQQQQQQQQQQQ
QQP  _.  4QQQQQQQQQQQP    4QQQ
QQ' jmBc ]QQQQQQQQQQP  _s  4QQ
QQ :BmBm  QQQQQQQP??' jWm6  QQ
QQ -Wmmm  QQQQ?`      BmmB; QQ
QQ/ ?mB( ]QQ?    aaa  $mBm` QQ
QQ6  -   QP   ajQQQQf "VU( _QQ
QQQ6/  aQP  _QQQQQQQQ/     QQQ
QQQQQQQQ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QQQQQQ' jQQQQQQQQQQQQQQQQQQQQ
QQQQQQ@ _QQQQQQQQQQQQQQQQQQQQQ
QQQQQQf jQQQQQQQQQQQQQQQQQQQQQ
QQQQQQ( mQQQQQQQQQQQQQQQQQQQQQ
QQQQQQ  QQQQQQQQQQQQQWQQQQQQQQ
QQQQQQ :QQQQQQQQQQQQQQQQQQQQQQ
QQQQQQ )QQQQQQQQQQQQQQQQQQQQQQ
QQQQQQawWQQQQQQQQQQQQWQQQQQQWQ
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
QQQQQQQQQQQQQQQQQQQQWQQQQQQQQQ
QQQQQQQQQQQQQQQQQQQQQQQQQQQWQQ
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
QQQQQQQQQQQQQQQQQQQWQQQQQQWQQQ
QQQQQQQQQQQQQQQQQQQQQQQQWQQQQQ
(Bezier cubic seems to be nearer to middle control point -- represented by circle - and ending points are not rendered at all.)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: SVG rendering errors

Post by magick »

We can reproduce the problem you reported and will have a patch to fix it within a week or two. Thanks.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: SVG rendering errors (linux)

Post by anthony »

This was extracted (split) from the topic it was originally posted to, as it is really a new topic.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Petr
Posts: 51
Joined: 2010-01-07T09:37:51-07:00
Authentication code: 8675309

Re: SVG rendering errors (linux)

Post by Petr »

anthony wrote:This was extracted (split) from the topic it was originally posted to, as it is really a new topic.
Ahh I confused topic window -- this should have to go to "SVG rendering errors" topic. Sorry for that.
viewtopic.php?f=3&t=18118
Post Reply