Re: [PHP] What method is best for generating thumbnails in PHP from PDF's?
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 > On Thu, 12 Nov 2009 09:45:55 -0800 (PST), stephe...@rogers.com (Stephen) > wrote: > > >--- On Thu, 11/12/09, Chris Payne 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 > >
Re: [PHP] What method is best for generating thumbnails in PHP from PDF's?
On Thu, 12 Nov 2009 09:45:55 -0800 (PST), stephe...@rogers.com (Stephen) wrote: >--- On Thu, 11/12/09, Chris Payne 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
Re: [PHP] What method is best for generating thumbnails in PHP from PDF's?
--- On Thu, 11/12/09, Chris Payne 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" Excellent article. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] What method is best for generating thumbnails in PHP from PDF's?
Hi Everyone, 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. What would you all recommend as an easy way to do this? Any help would be really appreciated. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php