Re: Can GD make a JPG thumbnail of a PDF?
| From: | ceo at l-i-e dot com | Date: | Thu, 11 Dec 2008 15:21:18 +0000 |
| Subject: | Re: Can GD make a JPG thumbnail of a PDF? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-284477@lists.php.net to get a copy of this message | ||
If system("convert -version") does nothing, it is probably erroring out.
Mess around with exec and using 2>&1 to try to get the error message.
It's going to boil down to paths and permissions.
The PHP user probably doesn't have convert in $PATH.
Use a FULL PATH for system/exec calls for *any* path, and within *any* script being called.
Anything else is just a time bomb waiting to blow up on you.