tags:

views:

176

answers:

1

I want to convert html content as image, is it possible?

<div class='temp'>
  <img class='tt'> 
     <div><img class='tt1' /></div>
</div>

I want to save whole div(class= 'temp') as a image with its content.

+1  A: 

You are going to need some kind of HTML render engine. Usually this means porting something like webkit to run on your server and having it draw to a bitmap. Not trivial by any means

Really need more details about exactly what you are trying to do (ie, is this your OWN html or arbitrary web sites, is the code to be php on a server or via javascript [not possible] .. are you willing to use a thumbnail service , etc)

Scott Evernden
Maybe you could get an external service to do it for you... does browsershorts.org have an API?
alex
do you have any example ?
chirag
dear i want to save customized design of user as a simple single image,
chirag