• php GD help
    3 replies, posted
hello i am trying to put together 6 images and 5 of them with different colors selected by a person, i have made it so it can put the images together but im having trouble selecting the colors without it having a error [code] <?php // create the background $avatar = imagecreate(184, 184); $background = imagecolorallocate($avatar, 0, 0, 0); // create the background $stripe1 = imagecreatefromgif('1.gif'); $color1 = imagecolorallocate($stripe1, 255, 0, 0); //when i try using this function it doesnt work for unknown reasons. imagecopy($avatar, $stripe1, 0, 0, 0, 0, 184, 184); $stripe2 = imagecreatefromgif('2.gif'); imagecopy($avatar, $stripe2, 0, 0, 0, 0, 184, 184); $stripe3 = imagecreatefromgif('3.gif'); imagecopy($avatar, $stripe3, 0, 0, 0, 0, 184, 184); $stripe4 = imagecreatefromgif('4.gif'); imagecopy($avatar, $stripe4, 0, 0, 0, 0, 184, 184); $stripe5 = imagecreatefromgif('5.gif'); imagecopy($avatar, $stripe5, 0, 0, 0, 0, 184, 184); $pl = imagecreatefromgif('pl.gif'); imagecopy($avatar, $pl, 0, 0, 0, 0, 184, 184); header('Content-type: image/png'); imagepng($avatar); imagedestroy($avatar); imagedestroy($stripe1); imagedestroy($stripe2); imagedestroy($stripe3); imagedestroy($stripe4); imagedestroy($stripe5); imagedestroy($pl); ?> [/code] any help will be appreciated
PHP goes in the Web Programming subforum.
Could a admin please move this (500th post) [editline]07:14PM[/editline] fixed
If you're using a form: $_POST["formvariable"];
Sorry, you need to Log In to post a reply to this thread.