Is there any free php code that transform text into a nice logo?

740 Views Asked by At

I would like to have a php function that can take text as the input and generate a nice logo (image) with that text. It would be nice to have a flexibility in the style of the logo (color, shadow, shape, size and so on). Can anybody recommend something?

4

There are 4 best solutions below

0
On

you want something like this?, http://trevorrudolph.com/image.php heres the code

<?php
$my_img = imagecreate( 400, 200 );
$background = imagecolorallocate( $my_img, 0, 0, 255 );
$text_colour = imagecolorallocate( $my_img, 255, 255, 0 );
$line_colour = imagecolorallocate( $my_img, 128, 255, 0 );
imagestring( $my_img, 4, 30, 25, "http://trevorrudolph.com",
  $text_colour );
imagesetthickness ( $my_img, 5 );
imageline( $my_img, 30, 45, 165, 45, $line_colour );

header( "Content-type: image/png" );
imagepng( $my_img );
imagecolordeallocate( $line_color );
imagecolordeallocate( $text_color );
imagecolordeallocate( $background );
imagedestroy( $my_img );
?>
0
On

My suggestion would be to use CSS+HTML to style the text and then generate an image from that using wkHTMLToImage, which is part of the wkHTMLtoPDF project - http://code.google.com/p/wkhtmltopdf/

0
On

I just know the ASCII Generator, but maybe theres a PHP version somewhere.

0
On

You may need another php code for generating that.

Here is how to Convert Text To Image