How can I write javascript that will load and print a web page to an image file and put that file in a specified location

Posted by Rben on Stack Overflow See other posts from Stack Overflow or by Rben
Published on 2010-12-31T02:39:44Z Indexed on 2010/12/31 2:54 UTC
Read the original article Hit count: 489

Filed under:
|
|
|

Here's what I want to do:

  1. Load a web page from a specific location
  2. Print that web page into a jpeg, png, or other graphic file format
  3. Upload that image to another site, or save it to a location on my local network

I know about window.print(), but that always seems to open up a print window, and I'd like to do as much of this operation silently as possible.

Essentially, I want to be able to take a snap shot of the web page so it can be put in a directory that is accessed by one of those electronic picture frames. They can either access a web-based service, or a directory on the local network.

Thanks in advance for your help, Rben

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about image