I have a very simple code:
- Code: Select all
<?php
$svg=<<<EOF
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" >
<svg version="1.1" height="300px" width="300px">
<circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red" />
</svg>
EOF;
$im=new Imagick();
$im->readImageBlob($svg);
$im->setImageFormat('png');
header('Content-type: image/png');
echo $im;
?>
When I try to run it, I get on log
Uncaught exception 'ImagickException' with message 'UnableToOpenBlob `/tmp/magick-XXwGVxDK': Aucun fichier ou dossier de ce type'
I use Zend Server 5.6 on Linux, same result with Zend Server 6.0 beta.
But it's working with ZS windows.
It seems that imagick cannot have sufficent rights to create temporary file !
If you have any idea, it will help me a lot
Thanks
Dams

