Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Screenshots of websites...

Screenshots of websites...
Thread Tools
Junior Member
Join Date: May 2003
Status: Offline
Reply With Quote
Jun 22, 2003, 07:24 PM
 
Hello all,

Is it possible with PHP to take a screenshot of a website to display on a website? Like a small thumbnail. I know this is probably quite a difficult task, but I'm looking for possible solutions. I have a list of websites, and I'd like to include a small 100x100 (or whatever) pixel thumbnail beside it.

Suggestions?
     
Senior User
Join Date: Nov 2002
Location: aurora
Status: Offline
Reply With Quote
Jun 23, 2003, 12:49 AM
 
You could try using the OS X screenshot cmd+shift+4 and space bar on the window and sending it to a picture editor to resize it.

Thanks for the idea partner. =<D
     
jon31  (op)
Junior Member
Join Date: May 2003
Status: Offline
Reply With Quote
Jun 23, 2003, 12:54 AM
 
Well, the whole point is to do it automatically

jon31
www.jmarus.com - kicks by JM
     
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Jun 24, 2003, 09:14 AM
 
you may be able to do it with the image magick pear plugin. (look at pear.php.net for all the different php modules). I think it has some way to convert a url to a picture, but i'm not sure

--will
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jun 24, 2003, 03:26 PM
 
There is a command-line tool on OSX to do a screen capture. Just rig up PHP to do:

Code:
screencapture test.pdf
Other options are available as well:

Code:
usage: screencapture [-icmwsWx] [file] [cursor] -i capture screen interactively, by selection or window control key - causes screen shot to go to clipboard space key - toggle between mouse selection and window selection modes escape key - cancels interactive screen shot -c force screen capture to go to the clipboard -m only capture the main monitor, undefined if -i is set -w only allow window selection mode -s only allow mouse selection mode -W start interaction in window selection mode -x do not play sounds file where to save the screen capture
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Mac Elite
Join Date: Aug 2000
Location: Minneapolis, MN
Status: Offline
Reply With Quote
Jun 25, 2003, 09:06 AM
 
Originally posted by Arkham_c:
There is a command-line tool on OSX to do a screen capture. Just rig up PHP to do:

Code:
screencapture test.pdf
Other options are available as well:

Code:
usage: screencapture [-icmwsWx] [file] [cursor] -i capture screen interactively, by selection or window control key - causes screen shot to go to clipboard space key - toggle between mouse selection and window selection modes escape key - cancels interactive screen shot -c force screen capture to go to the clipboard -m only capture the main monitor, undefined if -i is set -w only allow window selection mode -s only allow mouse selection mode -W start interaction in window selection mode -x do not play sounds file where to save the screen capture
Well, to use that you would have to first tell your browser to go to the page you want. This is an interesting question!

Is the server going to be running OSX? You could have a separate computer set up to do the screenshots, and then automatically save them to the server in question. The question is... which browser will you want to depict in your screengrab.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:44 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2