Jump to content

ImageMagick Hlp plz


LearningKid

Recommended Posts

Hi can anyone hlp me with wats going on here i never used imagemagic b4 now trying itt and im getting an

error plz hlp

 

<?php

   exec(’C:/Program Files/ImageMagick’);
   
    //the path to the PDF file
    $strPDF = "OTHER PLEDGES.doc";
   
    exec("convert \"{$strPDF}[0]\" -colorspace RGB -geometry 200 \"output.gif\"");
    ?>

Link to comment
https://forums.phpfreaks.com/topic/179673-imagemagick-hlp-plz/
Share on other sites

Don't use backticks in the exec function; it accepts a string. Also, running that first exec isn't doing anything (if it actually works like that) because there are no parameters passed to the program (that looks like a folder?). Other than that. Does convert process a doc? I noticed your variable is named PDF so that looks confusing. Also, what does the "[0]" do after the variable? That doesn't look like it should be there either.

Link to comment
https://forums.phpfreaks.com/topic/179673-imagemagick-hlp-plz/#findComment-948023
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.