Page 1 of 1

error converting svg file

Posted: 2012-10-18T02:33:36-07:00
by blowmymap
when I try to convert via php my svg file to ex. png file i get this error:

Code: Select all

    $filename = '507e6221c9f0f.svg';
    $content = file_get_contents($filename);
    $im = new Imagick();
    $im->readImageBlob($content);

Code: Select all

Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format `' @ blob.c/BlobToImage/347' in..
however when I do this via commend line everything is ok. I would use php exec() command, but I'm using PHP + IIS server, so I don't wanna to grant permission to use cmd.exe by IUSR user (the IIS user)

can anyone tell me how to fix this problem?

EDIT:
mixing convert.exe... with exec() function didn't do that I'm getting thesame error as above.

Re: error converting svg file

Posted: 2012-10-18T14:39:12-07:00
by fmw42
mixing convert.exe... with exec() function didn't do that I'm getting thesame error as above.
What was your exact command? Did you provide the full path to convert.exe? Is that the IM convert or the Windows convert? Did you provide the path to your svg file?