38 ms·
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
by meerita 13y ago
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.
- DenisM 13y agoCan you capture PDF that way, or is it only png?
- meerita 13y agoTo 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.
- DenisM 13y agoPrinting 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.
- j_s 13y agohttp://code.google.com/p/wkhtmltopdf/ http://code.google.com/p/wkhtmltopdf/ hasn't gotten much love lately, but it could still work for you.
- acron0 13y agoI 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?
- meerita 13y agoIt 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.