Re: What method is best for generating thumbnails in PHP from PDF's?

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

 



Hi, I've spent ages trying to figure out a good way for this. Ghostscript
and ImageMagick were slow and not giving satisfactory results because the
colors were wrong in some instances.

The solution for me was to use ImageMagick with X-PDF. You can install xpdf
in any linux distro or even on windows. It has a neat little program called
pdf2ppm which converts a PDF into a bitmap format which convert from
imagemagick can then transform. Even though the ppm images are huge, it
seems to work faster than using just convert.

++Tim Hinnerk Heuer++

http://www.ihostnz.com


2009/11/13 <clancy_1@xxxxxxxxxxxx>

> On Thu, 12 Nov 2009 09:45:55 -0800 (PST), stephen-d@xxxxxxxxxx (Stephen)
> wrote:
>
> >--- On Thu, 11/12/09, Chris Payne <chris_payne@xxxxxxxxxxxxxxx> wrote:
> >
> >> I have been asked to create thumbnails from the first page
> >> of a PDF
> >> document on the fly with PHP, I have looked online but am
> >> confused as
> >> there doesn't seem 1 simple solution.
> >
> >Go to sitepoint.com and search for "photo gallery in minutes"
>
> Sitepoint: Home » Search for "photo gallery in minutes"
>
> doesn't find anything for me?
>
>
> --
> 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