I'm running WAMPServer 2.2 (Apache 2.2.21 / MYSQL 5.5.16 / PHP 5.3.8), latest Drupal 7 build (17). I have successfully installed ImageMagik on Windows and test it to ensure it's working properly. I've added imagemagik.dll to my php extensions and enabled it. I have installed PDFThumb and linked the file field to an image field on the same content type.

When I try to add a PDF to a node, I get the error message "Error while creating PDF Thumbnails." This error occurs no matter if that File Field is set to display "Generic File," "Table of Files," or "File URL." The PDF uploads correctly and displays according to how it was set, but no thumbnails.

What step am I missing to get this module working? Under Configuration settings I made sure that my File field is single value, and "Give the real path of convert tools" is set to "C:/imagemagick."

Comments

BrightBold’s picture

Issue summary: View changes

I'm having the same problem, both locally (MAMP) and on Pantheon. Here's the watchdog info:
Error during the converstion from the file /mysite/sites/default/files/pubs/filename.pdf[0] to /tmp/filename.pdf.png with the command /usr/bin '/mysite/sites/default/files/pubs/filename.pdf[0]' '/tmp/filename.pdf.png'

mstef’s picture

It generates fine for me if I don't use an image style. If I do, there is a dead image. When I go to the URL of the image, I get: "Error generating image.".

ultrabob’s picture

I realize this is very old, but since I hit it while looking for an answer, I'll post my findings here: The cause of the error for me was that convert uses ghostscript to open pdf files, but ghostscript was not in apache's path, so it could not open the pdf files. You can see apache's path by running phpinfo (available in the system reports section of drupal). Means of modifying Apache's path vary from system to system, but you can do that, or you can symlink the gs binary into one of the directories in Apache's path. I'm not sure how either of these things would be accomplished in Windows, but I'm sure google can help with that.

niral098’s picture

Unfortunately, in my case, the path of convert tool imagemagick was wrongly set. After setting the path to /usr/bin/convert, pdf thumbnails could be generated without error :)