Pompair Pompair - 3 years ago 351
HTML Question

Pre-rendering html page into image

I want to pre-cache next web page into a thumbnail. Is it possible to pre-render a html page (with css) into an image on-the-fly with javascript/jQuery? And how to persist that temporary image on the client?

Answer Source

You could do an ajax request requesting an image or a linkt o an image from a script. This srcipt needs to request the data needed from the website and render it using a rendering mechanism. The returned information could be a link to the generated image on the server. Performance could be pretty low depending on the data to be retrieved and rendered.

This question will show you a solution to render a website and produce a pdf. You could use this approach and convert the pdf into an image usinf ImageMagick (needs to be installed on your server).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download