batamcityinfo / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

pdf support #353

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, i have recently worked for one of my customers on interesting project. The 
bottom of it was implement PDF thumbnail support to this script. I asked the 
customer if she agree with committing these changes back to this project. So if 
you are interested and obliging to implement these changes somehow to future 
timthumb release it would be great.

Please see attached archive for details:
1. orig file
2. new file
3. diff file
4. fallback image 

The support for PDF depends on either PHP imagick extension, or ImageMagick 
binary called convert(.exe) - but basically it can be any similar binary 
capable converting PDF files to images.

The code differences are mainly some constants and function preprocessPdf() 
used in processImageAndWriteToCache() and serveExternalImage() 

Feel free to contact me if you have any questions or if i can help you somehow 
implement this in future timthumb releases.

Original issue reported on code.google.com by josef.je...@gmail.com on 11 Mar 2012 at 4:16

Attachments: