Connecting Tech Pros Worldwide Help | Site Map

Convert HTML Code to an Image

petrovitch
Guest
 
Posts: n/a
#1: Jul 17 '05
The function imagecreate() is limited to raw text. How can I convert
an string with HTML tags to an image?

For example, if I wanted to create a dynamic banner or web page heading
using style codes or even the inclusion of images with <img tags.

NC
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Convert HTML Code to an Image


petrovitch wrote:[color=blue]
>
> The function imagecreate() is limited to raw text.
> How can I convert an string with HTML tags to an image?[/color]

You need to write your own HTML parser or lift one from
somewhere (Mozilla, perhaps?)...
[color=blue]
> For example, if I wanted to create a dynamic banner or
> web page heading using style codes or even the inclusion
> of images with <img tags.[/color]

Good luck... Tim Berners-Lee once remarked that it took
him a couple of months to write WorldWideWeb (aka Nexus)
on NeXT, but it would likely take him a year to do it on
any other platform. And that was in 1990, way before CSS...

Cheers,
NC

Closed Thread