News for hackers. Stuff that matters.
Re:Phantompy - Headless WebKit engine for Python, like phant... by meerita on Tuesday May 21, 2013 @05:08AM (#5742570)
We use it to generate images from a website. We do a product with HTML5/CSS3 and webfonts, layout it all then "screenshooting it" to make a final image with the proportions we want. It's cool because its server side and we can generate endless images based on what the user want.

Addendum: If you want to use webfonts, specially from Google, you need to recompile Phantom to support WOFF.

Re:Phantompy - Headless WebKit engine for Python, like phant... by acron0 on Tuesday May 21, 2013 @05:09AM (#5742573)
I was going to ask about off-screen rendering. What kind of speeds are achievable? 30fps? Could I use this to stream a web texture into a game?
Re:Phantompy - Headless WebKit engine for Python, like phant... by meerita on Tuesday May 21, 2013 @06:10AM (#5742749)
It is not fast as we wished. The whole request and image deliver is about 2 seconds or more, It's because we're using right now the same server for everything but for what are you asking, I think is not good idea. Achieve 30fps i see it hard.
Re:Phantompy - Headless WebKit engine for Python, like phant... by DenisM on Tuesday May 21, 2013 @11:43AM (#5744427)
Can you capture PDF that way, or is it only png?
Re:Phantompy - Headless WebKit engine for Python, like phant... by j_s on Tuesday May 21, 2013 @01:53PM (#5745411)
http://code.google.com/p/wkhtmltopdf/ hasn't gotten much love lately, but it could still work for you.
Re:Phantompy - Headless WebKit engine for Python, like phant... by meerita on Tuesday May 21, 2013 @12:47PM (#5744899)
To do PDF, you better install HTML->PDF command line tool than that. What this do is simply load a webkit browser and we just perform an screen of that.
Re:Phantompy - Headless WebKit engine for Python, like phant... by DenisM on Tuesday May 21, 2013 @02:25PM (#5745672)
Printing works differently in different engines, so I want the designer to use her HTML / chrome skills to design templates, and then render the PDF with users data using the same engine. Command line HTML to PDF tool will work too, but it will require the designer to relearn engine quirks.