rendering HTML as an image

Anyone know of any good tools (server side) that will render HTML as an image? I need this for an ad serving project and the client wants the ads rendered as images.

I'm guessing there isn't anything rubyish out there, but I could make a call from ruby to java or C if needed.

thanks

RMagick should do the trick: http://www.simplesystems.org/RMagick/doc/draw.html#text

Oh, sorry, missed that part (actually the most important one...) Alex Wayne wrote: