- Joined
- Jun 16, 2011
- Messages
- 320
- Reaction score
- 87
Hello,
I have a head.php script coded by joopie but atm it has a grey background (
i was wondering how do i make it transparent?
Thanks,
Josh
I have a head.php script coded by joopie but atm it has a grey background (
You must be registered to see links
put red on it so you can see)i was wondering how do i make it transparent?
<?php //Base fromYou must be registered to see links
$base = 'http://www.habbo.nl/habbo-imaging/avatarimage?figure=';
$figure = $_GET['figure'];
// Create image instances
$src = imagecreatefrompng($base.$figure);
$dest = imagecreate(64, 64);
// Copy
imagecopy($dest, $src, 0, 7, 0, 12, 57, 57);
// Output and free from memory
header('Content-Type: image/gif');
imagegif($dest);
echo "(c) sulake!";
imagedestroy($dest);
imagedestroy($src);
?>
Thanks,
Josh