text convert into an image
How do I convert text in开发者_JAVA技巧to an image in HTML
Thank you.
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.
There is some online converter called http://www.text-image.com/ which makes your task simple
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/
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/
精彩评论