schilly Posted September 16, 2008 Share Posted September 16, 2008 I created a PDF->PNG thumb preview script using ImageMagick but the live server doesn't have it installed. Can you do the same with GD? I did a couple searches but couldn't find anything related to thumbnail creation from PDFs. Thx. Quote Link to comment Share on other sites More sharing options...
schilly Posted September 16, 2008 Author Share Posted September 16, 2008 anyone know if GD can make thumbs from pdfs? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted September 16, 2008 Share Posted September 16, 2008 I'm fairly sure that you can't unless you can get an image of the PDF with some external utility. Also, what host are you using? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted September 16, 2008 Share Posted September 16, 2008 I'm fairly sure that you can't unless you can get an image of the PDF with some external utility. Also, what host are you using? Nothing is completely impossible but you are right php has no natural pdf->image function in php 4,5 Your best bet is to try one of a few things 1) Request thumbs be made offline (by hand) 2) cURL into an imagestick server to make the thumbs and send em back 3) install imagestick 4) Make a super elaborate pdf->png function for php and then give me a copy (don't try this please you might hurt someone) Quote Link to comment Share on other sites More sharing options...
DarkWater Posted September 16, 2008 Share Posted September 16, 2008 Just for your info, cooldude, it's "ImageMagick", not "ImageStick". I kinda chuckled. Quote Link to comment Share on other sites More sharing options...
rarebit Posted September 16, 2008 Share Posted September 16, 2008 mmm, i was about to look that one up! Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted September 16, 2008 Share Posted September 16, 2008 yeah I was typing something else for my imagestick flash drive also my lenovo mouse dot makes it hard to type Quote Link to comment Share on other sites More sharing options...
dennismonsewicz Posted September 16, 2008 Share Posted September 16, 2008 "imagestick" made me ROFL! I needed that... been a rough day Quote Link to comment Share on other sites More sharing options...
schilly Posted September 16, 2008 Author Share Posted September 16, 2008 Thanks guys. I was pretty certain you couldn't do it with GD. The host is uniserve which doesn't have ImageMagick =( I guess I could cURL into my test server to create them. So for that would I just send the raw image string data back? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted September 16, 2008 Share Posted September 16, 2008 Yeah, then use imagecreatefromstring(). Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted September 16, 2008 Share Posted September 16, 2008 Thanks guys. I was pretty certain you couldn't do it with GD. The host is uniserve which doesn't have ImageMagick =( I guess I could cURL into my test server to create them. So for that would I just send the raw image string data back? Or use FTP to FTP into the server without imagesmagick and make it be where you want it Quote Link to comment Share on other sites More sharing options...
schilly Posted September 16, 2008 Author Share Posted September 16, 2008 awesome. thanks so much. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.