Re: Can GD make a JPG thumbnail of a PDF?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think you want something like this :
exec("convert -density 360x360 -enhance $pdfFile $pdfFile.gif");


On 12/10/08 4:48 PM, "Brian Dunning" <brian@xxxxxxxxxxxxxxxx> wrote:

> I've spent most of the last week trying to get ImageMagick working on
> my Windows PHP installation. I gather that since I'm going to be
> converting PDFs to JPEGs, I need Ghostscript.
> 
> Well, I've got ImageMagick installed: http://printhq2.com/info.php
> I ran a Ghostscript installer, but it didn't seem to do very much.
> 
> Some site advised me to test my installation like this:
> <?php
> echo "<pre>";
> system("convert -version");
> echo "</pre>";
> ?>
> But it just returns blank. Can anyone help me get ImageMagick working
> on my server?
> 
> 
> On Nov 20, 2008, at 4:41 PM, Stephen Johnson wrote:
> 
>> No but you can use imagemagicks convert to convert the pdf to an
>> image and
>> then make a thumbnail of it.
> 

-- 
Stephen Johnson
The Lone Coder

http://www.ouradoptionblog.com
*Join us on our adoption journey*

stephen@xxxxxxxxxxxxxxxx
http://www.thelonecoder.com

*Continuing the struggle against bad code*
--



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux