News for hackers. Stuff that matters.
Re:PhantomJS is a minimalistic, headless, WebKit-based, Java... by endtime on Wednesday January 26, 2011 @03:47AM (#2142640)
I don't know that any of those support SVG. If you want to render e.g. Raphael.JS drawings on the server, headless JS with SVG DOM support is pretty useful.
Re:PhantomJS is a minimalistic, headless, WebKit-based, Java... by Torn on Wednesday January 26, 2011 @04:46AM (#2142766)
That actually sounds like a really neat idea - throwing together a PhantomJS script that scrapes the content of a particular div containing Raphael or Flot and then renders as png.
Re:PhantomJS is a minimalistic, headless, WebKit-based, Java... by endtime on Wednesday January 26, 2011 @11:49AM (#2143850)
Yeah, we're doing it with wkhtmltoimage right now, which works but makes me cringe every time I think about it.