Page 1 of 1

Converting SVG with negative boundaries

Posted: 2011-02-17T03:14:56-07:00
by panisson
Hi all,

I have a svg file with the following content:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
    "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg contentScriptType="text/ecmascript" width="1150px"
     xmlns:xlink="http://www.w3.org/1999/xlink" zoomAndPan="magnify"
     contentStyleType="text/css" viewBox="-879 -977 773 565" height="841px"
     preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg"
     version="1.1">
    <g id="edges">
        <path stroke-width="3.0"
              d="M -850.032471,-440.960083 L -134.113083,-948.163879"
              stroke="#0000ff"/>
    </g>
</svg>
Any svg visualizer (Gnome image viewer, Okular, Firefox, Chrome...) shows a line from the lower-left to the upper-right.
Whathever arguments I try to convert it from svg to png using the convert command line, the image is always blank. There's any way to show this image as the other standard visualizers do?

I'm using Ubuntu 10.04 and ImageMagick 6.5.7-8 2010-12-02 Q16

Thanks!

Re: Converting SVG with negative boundaries

Posted: 2011-02-17T11:41:33-07:00
by magick
It could be a bug in ImageMagick 6.5.7. We tried your SVG script with ImageMagick 6.6.7-7, the current release, and it displayed properly.

Re: Converting SVG with negative boundaries

Posted: 2011-02-17T17:11:35-07:00
by anthony
For a IM with RSVG delegate this works fine

For IM using MSVG it fails.. (blank white image)

For information on the two methods of SVG rendering see
http://www.imagemagick.org/Usage/draw/#svg