Page 1 of 1

Rasterize HTML Commands

Posted: Fri Jul 28, 2006 5:20 am
by subhendu
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.

Posted: Fri Jul 28, 2006 11:11 am
by Ollie Saunders
You'd need more than just PHP, you'd need a high level glue (possibly OS scripting) language that could run a browser and extract output from it. PHP really only generates HTML, it can generate images but only from a simplistic gd api. Alternatively you write a browser in PHP :D