Help Needed - ImageMagick

Discussion in 'PHP' started by scottlpool2003, Jun 21, 2013.

  1. #1
    I tried using ImageMagick but there appears to be issues with it when using a Windows server. Whenever I try and add the DLL file to the ext folder, the websites on the server fail with a 500 Internal Server error. Checking this error in Event Viewer I see:


    Testing if ImageMagick works via CMD does in fact work, but not in PHP and the crash happens when I drop the .dll file into the EXT folder.

    Any ideas?

    If not, any alternatives to strip out page 1 of a PDF file and convert it to an image?

    Thanks
     
    scottlpool2003, Jun 21, 2013 IP
  2. sorindsd

    sorindsd Well-Known Member

    Messages:
    201
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    118
    #2
    do you have the latest php libraries?
     
    sorindsd, Jun 21, 2013 IP
  3. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #3
    Since you say ImageMagick appears to work from the command line and your error report indicates that its the PHP-cgi interface .exe code that fails, I'd suggest calling ImageMagick directly in PHP using system() or passthu() as a test and possible workaround. The folks over at the ImageMagick support forum are pretty good at diagnosing these issues with PHP, so you could try asking over there, too.
     
    rainborick, Jun 22, 2013 IP
  4. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #4
    Simply adding files to your ext folder shouldn't throw this error. Edit your php.ini and remove extensions one by one to see which one if causing your issue. It's probably something with odb_ or mssql_.
     
    ThePHPMaster, Jun 22, 2013 IP
  5. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #5
    Thanks for your replies.

    I don't have ODB activated and I can't remove MSSQL as I use this on one of my websites.

    I'll send a message over at the IM forums and see if they come up with anything.
     
    scottlpool2003, Jun 24, 2013 IP