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>
is there a class for him? or should I blow it up and read the tags one by one? any suggestion?
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.
, .
PHP GD, :
http://visionmasterdesigns.com/tutorial-convert-text-into-transparent-png-image-using-php/ ( /)
http://corpocrat.com/2009/06/23/php-script-to-convert-textemail-address-to-image/
http://code.google.com/p/wkhtmltopdf/downloads/list
html pdf webkit, html . , , , .
imagemagick.