K
$xfire1 = imagecreatefrompng("http://miniprofile.xfire.com/bg/sf/type/0/".$username.".png");
$transparent = imagecolorallocate ($xfire1, 0, 0, 0);
imagecolortransparent ($xfire1,$transparent);
$transparent2 = imagecolorallocate ($xfire1, 11, 36, 51);
imagecolortransparent ($xfire1,$transparent2);
It only does the second one. The first colour is still visible.