We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How can I create a thumbnail of a PDF on upload?

Development and Programming

bgarrant's avatar
bgarrant
356 posts
14 years ago
bgarrant's avatar bgarrant

I have a client that needs to upload floor plans in PDF format to a website. They want to create a thumbnail image (screenshot) of the PDF upon upload. Does anyone know of a way to do this? Here is an example of what they are looking to do: http://plattsburghhousing.com/find_manhome.aspx. We are moving them over to EE2 and looking for a solution to this request.

Any help is greatly appreciated.

       
the3mus1can's avatar
the3mus1can
426 posts
14 years ago
the3mus1can's avatar the3mus1can

The most cost effective solution would be to use a desktop app to generate the JPG and have them attach to an entry both the PDF and JPG separately.

That being said you can generate a JPG on the server from a PDF using imagemagick, but it would have to be a custom solution. I am not aware of any add-ons that do that currently. Maybe someone else knows of one.

       
bgarrant's avatar
bgarrant
356 posts
14 years ago
bgarrant's avatar bgarrant

I looked at Devot:ee and did not see any add-ons for this purpose. I did see a few other requests in the forum for this feature so maybe it is time for someone to make one and make some money on it. I would contribute if there is not other existing way.

       
atle's avatar
atle
29 posts
13 years ago
atle's avatar atle

I can’t believe there’s nobody out there who hasn’t dealt with this issue.

Please, can’t somebody post a code-snippet or a short explanation using ImageMagick for us non-PHP-folks?

I’ve tried a couple of things found on Stackoverflow, but haven’t been able to make it whit with EE.

       
ctmaloney's avatar
ctmaloney
12 posts
13 years ago
ctmaloney's avatar ctmaloney

http://devot-ee.com/add-ons/thumber

       
atle's avatar
atle
29 posts
13 years ago
atle's avatar atle

Yup! Just installed it, and MAN IT’S GREAT! Thank you Electric Putty!

       
lelkins001's avatar
lelkins001
9 posts
13 years ago
lelkins001's avatar lelkins001

Thumber says it needs ImageMagick and Ghostscript installed. Can anyone walk me through how to do that? I am running EE on a Windows 2008 machine using IIS.

I installed ImageMagik, but then what? I see there are 3 php interfaces, do I need one of those? http://www.imagemagick.org/script/api.php#php

I installed the GhostScript 9.06 for Windows exe, but now what?

thanks!!!!

       
slt786's avatar
slt786
2 posts
12 years ago
slt786's avatar slt786

You should ghostscript and imagemagick to installe on your server . most linux hosting packages already have these installed.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.