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. Link to comment https://forums.phpfreaks.com/topic/124515-solved-gd-pdf-thumbs/ 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? Link to comment https://forums.phpfreaks.com/topic/124515-solved-gd-pdf-thumbs/#findComment-643230 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? Link to comment https://forums.phpfreaks.com/topic/124515-solved-gd-pdf-thumbs/#findComment-643244 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) Link to comment https://forums.phpfreaks.com/topic/124515-solved-gd-pdf-thumbs/#findComment-643248 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. Link to comment https://forums.phpfreaks.com/topic/124515-solved-gd-pdf-thumbs/#findComment-643251 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! Link to comment https://forums.phpfreaks.com/topic/124515-solved-gd-pdf-thumbs/#findComment-643264 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 Link to comment https://forums.phpfreaks.com/topic/124515-solved-gd-pdf-thumbs/#findComment-643270 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 Link to comment https://forums.phpfreaks.com/topic/124515-solved-gd-pdf-thumbs/#findComment-643273 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? Link to comment https://forums.phpfreaks.com/topic/124515-solved-gd-pdf-thumbs/#findComment-643305 Share on other sites More sharing options...
DarkWater Posted September 16, 2008 Share Posted September 16, 2008 Yeah, then use imagecreatefromstring(). Link to comment https://forums.phpfreaks.com/topic/124515-solved-gd-pdf-thumbs/#findComment-643307 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 Link to comment https://forums.phpfreaks.com/topic/124515-solved-gd-pdf-thumbs/#findComment-643308 Share on other sites More sharing options...
schilly Posted September 16, 2008 Author Share Posted September 16, 2008 awesome. thanks so much. Link to comment https://forums.phpfreaks.com/topic/124515-solved-gd-pdf-thumbs/#findComment-643322 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.