Jump to content

retreiving a screenshot of a site and storign it as a thumbnail image


bdee1

Recommended Posts

I am building a simple little app that will allow its users to add links to the database.  each link can have a title, url, description and image associated with it.

 

I was thinking it woudl be really slick if when a user adds a link, i could have a scrip to go take a screenshot of that site, and resize it to a thumbnail size and store it to the file system and insert the path to that stored image in the database record for that link.

 

is that possible?  could it be done with php?

 

any advice on how to get started on this would be appreciated.

Link to comment
Share on other sites

well..

 

it is possible on windows I think, to open a com connection with internet explorer.. navigate the browser to the location, and then grab the screenshot which then would return an image resource then you save the picture to your website and PRESTO

 

(going off of what I just found on php.net I run linux on my webhosts >.>)

 

imagegrabwindow

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.