Rasterize HTML Commands

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
subhendu
Forum Newbie
Posts: 2
Joined: Fri Jul 07, 2006 12:51 am

Rasterize HTML Commands

Post 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.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post 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
Post Reply