Jump to content

Archived

This topic is now archived and is closed to further replies.

mandark

Rasterize HTML Commands

Recommended Posts


Hello,

I'm seeking a way to rasterize (that is convert to a raster of bits) HTML commands. My belief is that I'd do this by directing the HTML to an off-screen window or port, and then asking to get back a JPEG or other image format of the bits of that window. This is done often in Windows. How does one do this in PHP?

Thanks.

Share this post


Link to post
Share on other sites
I can't envisage what you're really trying to do.  Make an image of an html command doesn't make sense unless you want something trivial like an image with the word <table> in it (for example).

Windows is an operating system; php is a server-side scripting language.

I wonder if any of php's GD library is related to what you want to do??

Share this post


Link to post
Share on other sites
What you are looking for is a 'html rendering engine'.  Usually that is done by the browser client side and no html rendering engine is available server side by php. The GD library won't do it for you.  Try doing a search on google for 'html rendering engine'.  I found this link:

http://www.terrainformatica.com/
-didn't read the whole site, don't know if it will work for you

-as with different browsers, different rendering engines may produce visually different images from the exact same html code.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.