Export DIV to JPG?
February 3, 2008 11:48 PM
Subscribe
WebDev-2.0Filter: Using client side technologies (i.e. Javascript, ActiveX, Java... JS is preferred) is it possible to generate an image file (PNG or JPG, or even PDF) from a DIV tag on the page?
I have a little web page where people can choose a bunch of options, click on, click off areas on a map etc... Is it possible, using only client-side technologies, to generate an image that represents the content in the DIV (A bunch of PNG images layered on top of each other and some text/controls)?
Actually, all that is important to have in the image are a bunch of (alpha) PNG files layered on top of each other. Am I missing something simple here? Is there a magic JS library I can load? Am I not thinking about this little roadblock in the right way?
The application is written for IE7 for now so anything that works in there is good. Extra points for browser agnostic or solutions across multiple platforms.
MefiMail/Email me if you want more info... Thanks in advance!
posted by puddpunk to computers & internet (11 comments total)
1 user marked this as a favorite
As for how to do it -- that's a more complicated story than an AskMe thread can cover, unless someone knows of a sweet library out there that'll do what you want. Unfortunately I don't...
posted by twiggy at 12:45 AM on February 4