Connecting Tech Pros Worldwide Help | Site Map

Convert HTML Code to an Image

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 11:27 AM
petrovitch
Guest
 
Posts: n/a
Default Convert HTML Code to an Image

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.


  #2  
Old July 17th, 2005, 11:27 AM
NC
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.