Does anyone know if there's a function in php that will allow me to convert a string into an image?
neclark2 0 Newbie Poster
Recommended Answers
Jump to PostThe GD Library will alow you to add text to an image, the GD library can be obtained from http://www.libgd.org/Main_Page
Jump to Postonce refer these links:
http://www.rafaeldohms.com.br/2008/02/12/adding-text-to-images-in-real-time-with-php/en/
http://www.developertutorials.com/tutorials/php/adding-custom-text-to-image-050620/page1.htmlor try this:
<?php $image = ImageCreateFromPNG("base.png"); $color = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); $colorShadow = imagecolorallocate($image, 0x66, 0x66, 0x66); $font = 'arial.ttf'; …
All 5 Replies
Will Gresham 81 Master Poster
amir_php 0 Newbie Poster
Shanti C 106 Posting Virtuoso
samnang.nong 0 Newbie Poster
cereal 1,524 Nearly a Senior Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.