Zoofu Posted January 12, 2010 Share Posted January 12, 2010 <?php include "./globals.php"; if($_GET['id']) { $user = mysql_fetch_object(mysql_query("SELECT * FROM `users` WHERE `id`=". $_GET['id'])); header("Content-type: image/png;"); $col = imagecreate(1,1); $black = imagecolorallocate($col,0,0,0); $back = imagecreatefrompng($user->avatar_background); $base = imagecreatefrompng($user->avatar_base); imagealphablending($base,true); imagecopy($back,$base,0,0,0,0,110,175); imagepng($back); imagedestroy($back); } else die("Error: ID not specified"); ?> I need it to be something like: I used this script structure (sort of) to make customisable avatars... But I dont know how to add Text into it, or position the images in certain places, not just overlapping. Quote Link to comment 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.