0

I have a website that i need to add a function that every time the user navigates to another page a screenshot of the page should be taken so i can use them latter.

I need this to be automatically done, with out the user doing any thing.

I do prefer not to have the user install any thing on his computer, if possible.

my site is written in asp.net, c# and regular web languages (jquery...).

Does any one have any good ides of ways to do this?

Thank you very much.

Ovi
  • 2,459
  • 9
  • 50
  • 72
  • Surely there is FAQ item for this by now http://stackoverflow.com/search?q=website+thumbnail – sehe Jun 27 '11 at 08:15
  • You can do this with imageMagick, do you have root access to your server? – Faraona Jun 27 '11 at 08:16
  • @Faraona, yes i have access, how do i use this? (i need it to be automatically ) – Ovi Jun 27 '11 at 08:20
  • Check link in my POST down. If you want to do this automatically, the best way is to create cronjob script who will process websites and take screenshoot – Faraona Jun 27 '11 at 08:22
  • @Faraona How do i do that? with the link you put in your POST? what is a cronjob script ? – Ovi Jun 27 '11 at 08:27
  • Here you are another example [link](http://www.mysql-apache-php.com/website_screenshot.htm) – Faraona Jun 27 '11 at 08:35

4 Answers4

0

For security reasons Web pages have no access to users hardware through normal processes.

You can create and ask the user to install an ActiveX object (IE only) or use a Java Applet (all browsers).

FogBugz is a Online Bug Report and they offer a way of doing a screndump directly to a Bug Id, but you still need to install the client application to do just that.

You can also use Silverlight as that requests user permission to access some of the hardware, like Audio, Screen, Printers, etc...

balexandre
  • 73,608
  • 45
  • 233
  • 342
-1

If you have root access to your server you can do this: LINK

And then create your script (cronjob) to execute it.

Faraona
  • 1,685
  • 2
  • 22
  • 33
-1

i would use System.Windows.Forms.WebBrowser.DrawToBitmap

benwasd
  • 1,342
  • 10
  • 18
  • -1 He want's a screenshot of the current page, and that class is only available in Windows Forms, in the tag he specifies ASP.NET, your idea is to load the page inside the `WebBrowser` control, there is no such control in an ASP.NET application! – balexandre Jun 27 '11 at 08:31
  • that means i cant use this in my asp.net application? – Ovi Jun 27 '11 at 08:40
  • asp.net apps runns with full .Net framework. this namespace is available. If you have FullTrust this isn't a problem. (I know: it's dirty to use classes of System.Forms in web apps). – benwasd Jun 27 '11 at 09:22
  • I dont understand how to use this class to do what i need to do? – Ovi Jun 27 '11 at 09:40
-1

Here you are another way to do this: Command line program to create website screenshots (on Linux)

What is cronjob and how you can use it

Community
  • 1
  • 1
Faraona
  • 1,685
  • 2
  • 22
  • 33