Convert html text to image using php

What is the best way to convert text embedded in an html tag to an image using php while keeping the style written in the html tag? eg:

convert:

<span class="Apple-style-span" style="font-size: xx-large;"><font class="Apple-style-span" color="#F4A460">Stack </font><font class="Apple-style-span" color="#800000">Overflow</font></span>

at: alt text

is there a class for him? or should I blow it up and read the tags one by one? any suggestion?

+5
source share
3 answers

Maybe you want to watch Painty . Although this is not exactly what you are looking for, because you have to feed it with many options, it should be a good resource on which you can expand.

, (-), HTML, , - , script.

, .

+2

http://code.google.com/p/wkhtmltopdf/downloads/list

html pdf webkit, html . , , , .

imagemagick.

0

All Articles