Hi,
I have some problems with ImageMagic...
When I try to convert a PDF to a JPG I have some problems with the paths I think.
When I have the PDF's in the root of my website everything is okay, and it works.
But when I try use the convert command in a folder, nothing happens... what am I doing wrong ?
This is working:
exec("convert.exe 12345.pdf test/12345.jpg");
This is NOT working:
exec("convert.exe test/12345.pdf test/12345.jpg");
The test folder is chmod 777....
Please help me out here... I don't want to have all my PDFs in the root of my website.
Best regards,
Jesper Andersen
Trying to convert PDF to JPG through PHP
Re: Trying to convert PDF to JPG through PHP
What happens if you do this:
Code: Select all
exec("convert test/12345.pdf test/12345.jpg");
Re: Trying to convert PDF to JPG through PHP
try:
See:
http://www.rubblewebs.co.uk./imagemagick/notes/info.php
Code: Select all
$input = 'test/12345.pdf';
exec("convert $input test/12345.jpg");
http://www.rubblewebs.co.uk./imagemagick/notes/info.php