This is my first time posting in this forum so i apologise if its in the wrong section.
I am trying using imagemagic to convert some SVG images to JPG. I am doing this within a PHP page. The problem is that the generated JPG are blank. I am new to ImageMagick and not sure what my problem is here.
The command i am using to make the conversion to JPG is:
Code: Select all
shell_exec("/usr/local/bin/convert <path>/cardoutsideleft.svg <path>/ar.jpg");
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<svg xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svg='http://www.w3.org/2000/svg' width='396.850393695' height='559.370078732' version='1.1'>
<g id='layer1'>
<text x='15.6' y='44.75' font-size='40' font-face='Arial' fill='#FF0000'>
<tspan x='15.6' y='44.75'>Happy 21st Birthday</tspan>
</text>
<image x='-36.6' y='252.6' width='471' height='352' xlink:href='birthday-cake2.png' />\
</g>
</svg>
Regards,
-Ben