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

From: Date: Thu, 11 Dec 2008 00:59:11 +0000
Subject: Re: Can GD make a JPG thumbnail of a PDF?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-284451@lists.php.net to get a copy of this message
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@briandunning.com> 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«0 > Þ,Ç’ÖÆ¡<ƒ¶ > 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@thelonecoder.com http://www.thelonecoder.com *Continuing the struggle against bad code* --

« previous php.general (#284451) next »