weretemplar Posted October 5, 2008 Share Posted October 5, 2008 I need some php help, im new at PHP and i saw this site at google, i was wondering if someone can tell me how to do this: or can someone tell me which tutorials do i have to read? thanks! Link to comment https://forums.phpfreaks.com/topic/127094-solved-i-need-some-php-help/ Share on other sites More sharing options...
ratcateme Posted October 5, 2008 Share Posted October 5, 2008 have a look at the GD library you can copy the top image on to a blank image then add the text at the bottom. something like $output = imagecreatetruecolor(200, 300); //create blank image to put main pic and text on //colours $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); //main pic $main_pic = imagecreatefromjpeg("main_pic.jpg"); //open main pic imagecopy($output, $main_pic, 0, 0, 0, 0, 200, 200); imagettftext($output, 12, 0, 0, 200, $black, "fontfile.ttf", "Level {$level}"); header('Content-type: image/png'); imagepng($output); You would need a mysql db to keep track of all the users and there level Scott. Link to comment https://forums.phpfreaks.com/topic/127094-solved-i-need-some-php-help/#findComment-657415 Share on other sites More sharing options...
weretemplar Posted October 5, 2008 Author Share Posted October 5, 2008 where do i type that code? sorry, im new to php Link to comment https://forums.phpfreaks.com/topic/127094-solved-i-need-some-php-help/#findComment-657658 Share on other sites More sharing options...
Orio Posted October 5, 2008 Share Posted October 5, 2008 It's not something you can copy and it'll magically work. ratcateme gave the basic guidelines on how to create something like what you've asked. You have to actually understand what's written there and learn how to edit this basic example so it'd fit your own needs. Orio. Link to comment https://forums.phpfreaks.com/topic/127094-solved-i-need-some-php-help/#findComment-657664 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.