Jump to content

Rasterize HTML Commands


mandark

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.
Link to comment
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??
Link to comment
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.