charlie1234 wrote:Using RSVG, definitely. Here's the PHP error I see:
Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format `/tmp/magick-Oz1tbLmc' @ error/svg.c/ReadSVGImage/2831' in /var/www/apache2/svg/serve-layers.php:40 Stack trace: #0 /var/www/apache2/svg/serve-layers.php(40): Imagick->readimageblob('
I was having a problem with RSVG in IM (command line) not rendering a simple example from
http://www.w3.org/TR/SVG/shapes.html#RectElement
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"
http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="12cm" height="4cm" viewBox="0 0 1200 400"
xmlns="
http://www.w3.org/2000/svg" version="1.1">
<desc>Example rect01 - rectangle with sharp corners</desc>
<!-- Show outline of canvas using 'rect' element -->
<rect x="1" y="1" width="1198" height="398"
fill="none" stroke="blue" stroke-width="2"/>
<rect x="400" y="100" width="400" height="200"
fill="yellow" stroke="navy" stroke-width="10" />
</svg>
convert file.svg file.png
did not work. It did not do the fill colors correctly.
But
conver file.svg MVG:file.png
worked.
I was using
SVG SVG rw+ Scalable Vector Graphics (
RSVG 2.32.1)
SVGZ SVG rw+ Compressed Scalable Vector Graphics (RSVG 2.32.1)
What version are you using? Can you render the above example correctly with your version?