error “convert: invalid parameter”

August 10, 2009 by nuno costa 2 comments

phMagick :: error convert: invalid parameter

If you get this error on windows is because windows is finding the convert.exe (used to convert a file system to ntfs) instead of the ImageMagick convert.exe

Here are a few possible solutions

  • Use $phMagick->setImageMagickPath(‘C:/progra~1/imagemagick/bin’) or the path to where your ImageMagick binaries are
  • Change the %PATH% environment variable so the path to ImageMagick comes in first place
  • Edit phMagick source and change $imageMagickPath=” to $imageMagickPath=’C:/progra~1/imagemagick/bin’; (around line 38)

Make sure you end your path with / and avoid spaces in the path, use the short file name syntax

2 comments so far Add Your Comment

  1. by chinmoy on December 17 2009 at 08:36

    hi,
    i use wamp and it is installed in d drive.i have copied the line $phMagick->setImageMagickPath(’C:/progra~1/imagemagick/bin’) in my index.php file but i am getting this error -
    phMagick: Error executing “convert -fill “#000″ -pointsize 12 label:”phMagick rules!!!!!” “text1.png”"
    return code: 4
    command output :”Invalid Parameter – “#000″”

  2. by nuno costa on January 20 2010 at 21:27

    @chinmoy

    is imagemagick installed on that path?

More from francodacosta.com

© francodacosta.com - All rights reserved