...

View Full Version : Text file --> imagepng()



SDP2006
09-16-2003, 02:51 AM
I have a text file, how can I make the text a png image?

thanks

Íkii
09-16-2003, 09:38 AM
text as in text or text as in binary string?

$a = imagecreatefromstring('file.ext');
header("Content-type: image/png");
imagepng($a);

other than that, check the functions

imagestring
imagestringup
imagettfbbox
imagettftext
imagefttext
imageftbbox

in the manual - presumes compiled GD module.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum