Need Help With Image Generator

Ok I am Making an ID Card For A Game and I want users to Type in Their account name and it places the text on the card

Here is what i need it to do i made this form basically showing what its going to do and what it willl look like after generated is at the bottom

Im just not sure how to do this


Ok I Built it but i dont know how to get the text to appear where i want it this is the only problem left…

here is the code:


$user = $_POST['user'];
$img = $_POST['picture'];

header ("Content-type: image/png");
$string = $user;
$font = 4;
$width = imagefontwidth($font) * strlen($string);
$height = imagefontheight($font);
$im = imagecreatefrompng($img);
$x = imagesx($im) - $width;
$y = imagesy($im) - $height;
$backgroundColor = imagecolorallocate ($im, 255, 255, 255);
$textColor = imagecolorallocate ($im, 0, 0, 0);
imagestring ($im, $font, $x, $y, $string, $textColor);


The Text only Appears on The Bottom Right

is there any1 who can help me with this

First of all, it’s considered rude to bump threads within 24 hours. Yes, someone is willing to help you, but we’re not sitting here all day waiting for someone to come by with a problem that we can solve. Also, if you don’t get replies, it usually means that either your problem is too complex, or you didn’t give enough information for us to post anything sane.

As for your problem, imagestring() entry in the PHP manual will give you all the information you need.

Sponsor our Newsletter | Privacy Policy | Terms of Service