How to Create Image from HTML code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
younker1983
Forum Newbie
Posts: 1
Joined: Tue Feb 05, 2008 1:56 am

How to Create Image from HTML code

Post by younker1983 »

Hi..

I want to create image from Html Code like

$data="I Want to Create Image <br> From Text";

Output in Image like this :

I Want to Create Image
From Text

Thanks in Advance
Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

Re: How to Create Image from HTML code

Post by Rovas »

First you need to interpret the html tags what does one, second you use functions imagettfbbox;
imagettftext;
imagestring
Post Reply