error converting svg file

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
blowmymap
Posts: 1
Joined: 2012-10-18T02:31:57-07:00
Authentication code: 67789

error converting svg file

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: error converting svg file

Post 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?
Post Reply