tags:

views:

75

answers:

4

Hi,

How do I convert text into an image in HTML

Thank you.

+4  A: 

You can't generate an image in HTML. You will need the help of a programming language for that - PHP, ASP, Python, Ruby.... on the server side, or (more unusually) JavaScript and Canvas on the client side.

There are many "text as image" generation scripts in the PHP world, for example, but you will need server-side PHP for those to work.

Pekka
ic thankyou my friend
A: 

Here is the PHP code for it.

http://php.net/manual/en/function.imagestring.php

I think you want to do a capctha system. Here is a tutorial to do this.

http://www.codewalkers.com/c/a/Miscellaneous/Creating-a-CAPTCHA-with-PHP/

Judas Imam
+1  A: 

There is some online converter called http://www.text-image.com/ which makes your task simple

Senthil Kumar Bhaskaran
A: 

As suggested by @Pekka, you need some programming language in order to do that. Here is an online resource you may want to use to convert text into an image:

http://text-image.com/

Sarfraz
Won't that convert an image to text?
alex