PDF cover thumbnails for attached files

This howto has been superseded by http://drupal.org/node/815816 (patch for Upload preview module).

Tested on:

Using ImageMagick + GhostScript you can convert the first page of a PDF into a thumbnail image linking to file. You can cut and paste this function on your theme main script: you have to manually create the thumb directory and grant write permission by scripts. Check also the path to ImageMagick convert command.

Update

You can alternatively use imagemagick function provided by image.module (the image.imagemagick.inc file on drupal/includes):

https://web.archive.org/web/20080606000000*/http://drupal.org/node/815816

(patch for Upload preview module).</strong><br /> Tested on:</p> <ul> <li>Drupal 5.x</li> <li>Content Templates module</li> <li>ImageMagick 6.3.7</li> <li>GhostScript 8.15.3</li> </ul> <p>Using ImageMagick + GhostScript you can convert the first page of a PDF into a thumbnail image linking to file. You can cut and paste this function on your theme main script: you have to manually create the thumb directory and grant write permission by scripts. Check also the path to ImageMagick convert command.</p> <pre style=

Proxied content from gemini://chirale.org/2008-06-06_71.gmi (external content)

Gemini request details:

Original URL
gemini://chirale.org/2008-06-06_71.gmi
Status code
Success
Meta
text/gemini; charset=utf-8
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.