Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert text to image?

I have seen in a couple of cases when sites generate image based on text/data input. How that can be achieved with PHP?

like image 440
OrangeRind Avatar asked Sep 20 '09 07:09

OrangeRind


2 Answers

I believe libGD is one of the most popular alternatives for generating images (and it has bindings for most languages used in web development).

See the documentation on PHP.net. I guess you are especially interested in imagettftext.

like image 96
pafcu Avatar answered Sep 30 '22 09:09

pafcu


Another option: try imagick

like image 37
jrharshath Avatar answered Sep 30 '22 10:09

jrharshath