mattal999 Posted October 19, 2007 Share Posted October 19, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/ Share on other sites More sharing options...
mattal999 Posted October 19, 2007 Author Share Posted October 19, 2007 nobody? Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373270 Share on other sites More sharing options...
mattal999 Posted October 19, 2007 Author Share Posted October 19, 2007 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); Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373307 Share on other sites More sharing options...
JSHINER Posted October 19, 2007 Share Posted October 19, 2007 photoshop Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373318 Share on other sites More sharing options...
mattal999 Posted October 19, 2007 Author Share Posted October 19, 2007 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!!! Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373321 Share on other sites More sharing options...
JSHINER Posted October 19, 2007 Share Posted October 19, 2007 Sorry I didn't notice the dynamically aspect of it. Looks pretty cool. Good luck! Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373325 Share on other sites More sharing options...
JSHINER Posted October 19, 2007 Share Posted October 19, 2007 Can you post the full code - maybe I can help. Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373327 Share on other sites More sharing options...
mattal999 Posted October 19, 2007 Author Share Posted October 19, 2007 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); Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373330 Share on other sites More sharing options...
mattal999 Posted October 19, 2007 Author Share Posted October 19, 2007 still nobody???... Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373360 Share on other sites More sharing options...
pocobueno1388 Posted October 19, 2007 Share Posted October 19, 2007 It looks like you have it working... Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373363 Share on other sites More sharing options...
mattal999 Posted October 19, 2007 Author Share Posted October 19, 2007 no, thats without the graphic, the text at the bottom doesn't fade... Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373367 Share on other sites More sharing options...
mattal999 Posted October 19, 2007 Author Share Posted October 19, 2007 alrite, i did it i made an alternative! http://www.games4uonline.com/web/test2.php?name=§%20Sneeza%20§ Try it Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373385 Share on other sites More sharing options...
SammyGunnz Posted October 19, 2007 Share Posted October 19, 2007 Looks good. Good job. Did something similar not too long ago :-) Fun stuff Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373386 Share on other sites More sharing options...
mattal999 Posted October 19, 2007 Author Share Posted October 19, 2007 thanks! Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373389 Share on other sites More sharing options...
chocopi Posted October 19, 2007 Share Posted October 19, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373390 Share on other sites More sharing options...
mattal999 Posted October 19, 2007 Author Share Posted October 19, 2007 go on it again and look at the smoothing... one question though to all u GD experts, how can i make the actual text smoother? thanks keep the comments comin! EDIT: which you think looks better? OR Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373399 Share on other sites More sharing options...
chocopi Posted October 19, 2007 Share Posted October 19, 2007 much smoother I just noticed that if you type in something that is to long then your gradient width stops or it might be that the gradient isnt centered along with the image Long Link Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373406 Share on other sites More sharing options...
mattal999 Posted October 19, 2007 Author Share Posted October 19, 2007 yes, i made the lighten picture, the lines and the oval all 1200 pixels wide... at least the text still fits lol i didnt think it would do that anyways, i will look into it tmoz cuz i g2g right now. cya Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373409 Share on other sites More sharing options...
SammyGunnz Posted October 19, 2007 Share Posted October 19, 2007 I like the second image....lot cleaner. Good work. Would be interested in seeing your final code. Happy coding :-) Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-373418 Share on other sites More sharing options...
mattal999 Posted October 20, 2007 Author Share Posted October 20, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-374104 Share on other sites More sharing options...
mattal999 Posted October 20, 2007 Author Share Posted October 20, 2007 nobody has any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-374116 Share on other sites More sharing options...
mattal999 Posted October 20, 2007 Author Share Posted October 20, 2007 omg nobody at all have any ideas on how to smoothen the words Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-374150 Share on other sites More sharing options...
mattal999 Posted October 20, 2007 Author Share Posted October 20, 2007 omg nobody at all have any ideas on how to smoothen the words BUMP... Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-374178 Share on other sites More sharing options...
Wes1890 Posted October 21, 2007 Share Posted October 21, 2007 Try adding this: imagefilter($image_handle, IMG_FILTER_SMOOTH) Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-374418 Share on other sites More sharing options...
mattal999 Posted October 21, 2007 Author Share Posted October 21, 2007 yea, i dont have the function imagefilter... anybody written a custom function for imagefilter? Quote Link to comment https://forums.phpfreaks.com/topic/73962-making-web-20-logos/#findComment-374795 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.