Jump to content

Making Web 2.0 Logos


mattal999

Recommended Posts

Hi,

 

i have managed to get this up and running:

 

http://www.games4uonline.com/web/test2.php?name=(whatever)

 

but how can i add a reflection?

 

i am using

 

drawboldtext($im, 32, 0, $width3, 50, 51, 153, 255, $font, $_GET['name']);
imagecolortransparent($pattern);
imageCopyMerge($im, $pattern, 0, 0, 0, 0, 1200, 100, 25);
imagecolortransparent($overlap);
imageCopyMerge($im, $overlap, 0, 0, 0, 0, $width2, 100, 40);

 

so what can i do?

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/73962-making-web-20-logos/
Share on other sites

please check the link out now, i am soooo close! i just need the gradient png http://www.games4uonline.com/web/overlap.png to not have a black bg...

 

code:

 

$overlap2 = imagecreatefrompng("overlap.png");
imagecolortransparent($overlap2);
imageCopyMerge($im, $overlap2, 0, 50, 0, 50, 1200, 100, 50);

Link to comment
https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373307
Share on other sites

yes, i have made the gradient png...

 

have you read the post? i am trying to do it dynamically with php...

 

look at this: http://www.games4uonline.com/web/test2.php?name=JSHINER

 

i just need the file: http://www.games4uonline.com/web/overlap.png to go over the bottom properly, not with a solid blue bg.

 

and i cant convert to a gif because it turns into 2 colors...

 

help!!!

Link to comment
https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373321
Share on other sites

well, heres the basic drawing part of the code:

 

header("Content-type: image/png");
$im = @imagecreate($width, 100)
or die("Cannot Initialize new GD image stream");
$overlap = imagecreatefromgif("overlap2.gif");
$img = imagecreatefrompng("overlap.png");
$pattern = imagecreatefromgif("pattern.gif");
$reflect = imagecreatefromgif("$filename");
$background_color = imagecolorallocate($im, 255, 255, 255);
$text_color = imagecolorallocate($im, 51, 153, 255);
$font = 'verdana.ttf';
function drawboldtext($image, $size, $angle, $x_cord, $y_cord, $r, $g, $b, $fontfile, $text) 
{ 
   $color = ImageColorAllocate($image, $r, $g, $b); 
   $_x = array(1, 0, 1, 0, -1, -1, 1, 0, -1); 
   $_y = array(0, -1, -1, 0, 0, -1, 1, 1, 1); 
   for($n=0;$n<=8;$n++) 
   { 
      ImageTTFText($image, $size, $angle, $x_cord+$_x[$n], $y_cord+$_y[$n], $color, $fontfile, $text); 
   } 
}

drawboldtext($im, 32, 0, $width3, 50, 51, 153, 255, $font, $_GET['name']);
imagecolortransparent($pattern);
imageCopyMerge($im, $pattern, 0, 0, 0, 0, 1200, 100, 25);
imagecolortransparent($overlap);
imageCopyMerge($im, $overlap, 0, 0, 0, 0, 1200, 100, 25);
imageCopyMerge($im, $reflect, 0, 50, 0, 50, $width, 100, 50);
imageCopyMerge($im, $img, 0, 50, 0, 50, 1200, 100, 85);
imagepng($im);
imagedestroy($im);

Link to comment
https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373330
Share on other sites

Yea this is awesome !!!

 

The only I would say is that it looks kind of strange when you have letters that hang below normal eg lowercase p and g. Also, the gradient seems to just end and doesnt fade away smoothly, but thats probably me just being picky.

 

Nice Code ;D

Link to comment
https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373390
Share on other sites

one question though to all u GD experts, how can i make the actual text smoother?

 

@SammyGunnz: Well, the second image is Alex.P's WEb 2.0 Logo Generator... it does look cleaner but i just need the text more smoother and he uses a different font which i think looks rubbish... I'm not sure if i will post my final code...

 

cheers

Link to comment
https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-374104
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.