SVG broken

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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

SVG broken

Post by snibgo »

I'm upgrading from v6.8.9-5 to 6.9.0-0. Converting from SVG to PNG, via Inkscape v0.48 as the delegate, is broken. Most of my page http://im.snibgo.com/svgtext.htm is broken, but here is a simple example.

For example, with this text file st_curve_over.svg:

Code: Select all

<svg xmlns:svg="http://www.w3.org/2000/svg" version="1.2"
     xmlns:xlink="http://www.w3.org/1999/xlink" 
  width="100%" height="100%" viewBox="0 0 4924 4155">
  <title>Template for curved text</title>
  <defs>
<path id="rightLeg"
d="m 2054.9628,4087.2823 c 111.2433,-277.4071 283.6244,-569.5646 435.2041,-849.1977 139.5902,-257.5149 320.0689,-553.5677 436.536,-762.647 116.4671,-209.0793 332.4999,-623.9811 332.4999,-623.9811 M0,1000 L1000,1000"
 />
  </defs>
<text font-family="Verdana" font-size="200" fill="blue" >
    <textPath xlink:href="#rightLeg"
>We go up, then we go down, then up again</textPath>
  </text>
</svg>
With v6.8.9-5, this made blue text on a white background. With 6.9.0-0, it just makes a white image.

Code: Select all

f:\prose\PICTURES>%IMG6895%convert -verbose st_curve_over.svg s.png

"inkscape" "st_curve_over.svg" --export-png="C:/Users/Alan/AppData/Local/Temp/ma
gick-2880JKMx7HHzcMrf" --export-dpi="90,90" --export-background="rgb(100%,100%,1
00%)" --export-background-opacity="1" > "C:/Users/Alan/AppData/Local/Temp/magick
-2880hg0Cmntf8x24" 2>&1

C:/Users/Alan/AppData/Local/Temp/magick-2880JKMx7HHzcMrf PNG 4924x4155 4924x4155+0+0 8-bit sRGB 182KB 0.500u 0:00.500
st_curve_over.svg=>C:/Users/Alan/AppData/Local/Temp/magick-2880JKMx7HHzcMrf SVG4924x4155 4924x4155+0+0 8-bit sRGB 182KB 0.000u 0:00.000
st_curve_over.svg=>s.png SVG 4924x4155 4924x4155+0+0 8-bit sRGB 256c 64.7KB 0.672u 0:00.531

f:\prose\PICTURES>%IMG690%convert -verbose st_curve_over.svg s.png

"inkscape" "C:/Users/Alan/AppData/Local/Temp/magick-51885Et4vXlKTaA4" --export-png="C:/Users/Alan/AppData/Local/Temp/magick-5188mgJ-23lCPD3s" --export-dpi="90,90" --export-background="rgb(100%,100%,100%)" --export-background-opacity="1" > "

C:/Users/Alan/AppData/Local/Temp/magick-5188gIDVwtsaG4Oq" 2>&1
st_curve_over.svg SVG 4924x4155 4924x4155+0+0 16-bit sRGB 641B 0.250u 0:01.889
st_curve_over.svg=>s.png SVG 4924x4155 4924x4155+0+0 8-bit sRGB 2c 10.8KB 0.578u 0:00.422
I notice that the old version passed the SVG input file to Inkscape. The new version writes a temporary file, and passes that to Inkscape. Perhaps this is where the problem lies.
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: SVG broken

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.9.0-1 Beta available by sometime tomorrow. Thanks.
Post Reply