I'm looking for a way to auto generate images (.png, .jpg, or .gif) from the output of a PHP string.
Ideally I'm looking for something that takes a string of HTML + CSS, or a URL, takes the output of that page with all the HTML / CSS formatting, and creates an image which retains the formatting, and then outputs that image file.
If CSS formatting isn't supported, pure HTML formatting or whatever the next best option is, would be fine.
Any suggestions?