Hello,
I have a head.php script coded by joopie but atm it has a grey background (http://gyazo.com/cf67e645663a46b6ba74c041cc546877)(i put red on it so you can see)
i was wondering how do i make it transparent?
Thanks,<?php //Base from http://www.php.net/manual/en/function.imagecopy.php
$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);
?>
Josh


Reply With Quote

