Convert web page to Image

  • Thread starter Thread starter Itai Rechnitz
  • Start date Start date
I

Itai Rechnitz

Hi everybody!

Does anyone know how can I, using a URL of a web page, load this page to the
server and display it as image, meaning that the whole page will be
displayed to the end user as a jpg screenshot.

Thanks!

Itai
 
Itai Rechnitz said:
Hi everybody!

Does anyone know how can I, using a URL of a web page, load this page to the
server and display it as image, meaning that the whole page will be
displayed to the end user as a jpg screenshot.

Just one thought about your interesting problem:
the result will, of course, depend on the browser.
IE6 will produce another screenshot than NN6.
This will not be easy to implement.

If you are able to make this work (show screenshots
of a page generated by different browsers), I will
frequently visit your page (even if I have to pay) to do
sitechecks for all my own pages!

Please give us the URL when it's finished.
 
Thank you for you mail Jos,

I wasn't aiming on solving browser compatibility problems. I was thinking
more about overcoming another known problem that causes printers not to
print the background of web pages when you print them.

I'm trying to print is a ticket, similar to a concert ticket, and I want
that ticket to be printed altogether with the background and images,
unfortunately, I can't think of a different idea of how to do this.

If you're looking for a product, you can find one at around 150$ that will
do the job for you, try http://www.abcupload.com.

I want to write my own .Net component that will do the same thing, I don't
think it should be that complicated to do this.

Regarding solving browser issues, the sad truth is that by converting whole
pages to an image, you'll cause so many performance problems, especially
when working with dynamic pages, that the way I see it, you'll drop the idea
as soon as you'll try it.

Itai
 
Hi, Itali Rechnitz,

Itai Rechnitz said:
Thank you for you mail Jos,

I wasn't aiming on solving browser compatibility problems. I was thinking
more about overcoming another known problem that causes printers not to
print the background of web pages when you print them.

It is setting on the browser - Tools -> Internet Options -> Advanced ->
Printing -> Print background colors and images.
I'm trying to print is a ticket, similar to a concert ticket, and I want
that ticket to be printed altogether with the background and images,
unfortunately, I can't think of a different idea of how to do this.

If it is for a ticket only - you can create the image yourself. First create
a template background. Load it in a System.Drawing.Bitmap instance. Get the
Graphics with the static System.Drawing.Graphics.FromImage(). Then call the
appropriate overloads of DrawString on this instance. For a ticket there
shouldn't be a lot to write.

Hope this helps
Martin
 
Back
Top